Changeset dd95ce4


Ignore:
Timestamp:
2013-04-20T13:17:22Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
a016221, e277e80, f539d6e
Parents:
e31e5b8
Message:

Const is hard, let's go hacking.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lib/arc.c

    re31e5b8 rdd95ce4  
    188188}
    189189
    190 int arc_decode( unsigned char *crypt, int crypt_len, char **clear, char *password )
     190int arc_decode( unsigned char *crypt, int crypt_len, char **clear, const char *password )
    191191{
    192192        struct arc_state *st;
  • lib/arc.h

    re31e5b8 rdd95ce4  
    3838unsigned char arc_getbyte( struct arc_state *st );
    3939int arc_encode( char *clear, int clear_len, unsigned char **crypt, char *password, int pad_to );
    40 int arc_decode( unsigned char *crypt, int crypt_len, char **clear, char *password );
     40int arc_decode( unsigned char *crypt, int crypt_len, char **clear, const char *password );
  • storage_xml.c

    re31e5b8 rdd95ce4  
    182182        xd->given_nick[MAX_NICK_LENGTH] = '\0';
    183183        nick_lc( xd->given_nick );
    184         xd->given_pass = password;
     184        xd->given_pass = (char*) password;
    185185       
    186186        fn = g_strconcat( global.conf->configdir, xd->given_nick, ".xml", NULL );
Note: See TracChangeset for help on using the changeset viewer.