diff options
-rw-r--r-- | lib/arc.c | 2 | ||||
-rw-r--r-- | lib/arc.h | 2 | ||||
-rw-r--r-- | storage_xml.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -187,7 +187,7 @@ int arc_encode( char *clear, int clear_len, unsigned char **crypt, char *passwor return clear_len + ARC_IV_LEN; } -int arc_decode( unsigned char *crypt, int crypt_len, char **clear, char *password ) +int arc_decode( unsigned char *crypt, int crypt_len, char **clear, const char *password ) { struct arc_state *st; unsigned char *key; @@ -37,4 +37,4 @@ struct arc_state G_GNUC_MALLOC struct arc_state *arc_keymaker( unsigned char *key, int kl, int cycles ); unsigned char arc_getbyte( struct arc_state *st ); int arc_encode( char *clear, int clear_len, unsigned char **crypt, char *password, int pad_to ); -int arc_decode( unsigned char *crypt, int crypt_len, char **clear, char *password ); +int arc_decode( unsigned char *crypt, int crypt_len, char **clear, const char *password ); diff --git a/storage_xml.c b/storage_xml.c index 10cb6495..1f2d4a51 100644 --- a/storage_xml.c +++ b/storage_xml.c @@ -181,7 +181,7 @@ static storage_status_t xml_load_real( irc_t *irc, const char *my_nick, const ch strncpy( xd->given_nick, my_nick, MAX_NICK_LENGTH ); xd->given_nick[MAX_NICK_LENGTH] = '\0'; nick_lc( xd->given_nick ); - xd->given_pass = password; + xd->given_pass = (char*) password; fn = g_strconcat( global.conf->configdir, xd->given_nick, ".xml", NULL ); if( ( fd = open( fn, O_RDONLY ) ) < 0 ) |