Changeset 3b6eadc for lib/rc4.c


Ignore:
Timestamp:
2007-07-07T17:19:28Z (17 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
b9e4ab5
Parents:
f7b44f2
Message:

Fix some warnings in storage.c.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/rc4.c

    rf7b44f2 r3b6eadc  
    122122*/
    123123
    124 int rc4_encode( unsigned char *clear, int clear_len, unsigned char **crypt, char *password )
     124int rc4_encode( char *clear, int clear_len, unsigned char **crypt, char *password )
    125125{
    126126        struct rc4_state *st;
     
    130130        key_len = strlen( password ) + RC4_IV_LEN;
    131131        if( clear_len <= 0 )
    132                 clear_len = strlen( (char*) clear );
     132                clear_len = strlen( clear );
    133133       
    134134        /* Prepare buffers and the key + IV */
     
    154154}
    155155
    156 int rc4_decode( unsigned char *crypt, int crypt_len, unsigned char **clear, char *password )
     156int rc4_decode( unsigned char *crypt, int crypt_len, char **clear, char *password )
    157157{
    158158        struct rc4_state *st;
     
    165165        if( clear_len < 0 )
    166166        {
    167                 *clear = (unsigned char*) g_strdup( "" );
     167                *clear = g_strdup( "" );
    168168                return 0;
    169169        }
Note: See TracChangeset for help on using the changeset viewer.