From dd95ce431b5c85eb6d74e501a7796e8a6016ec70 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 20 Apr 2013 14:17:22 +0100 Subject: Const is hard, let's go hacking. --- lib/arc.c | 2 +- lib/arc.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/arc.c b/lib/arc.c index 1bd5cf87..3a634837 100644 --- a/lib/arc.c +++ b/lib/arc.c @@ -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; diff --git a/lib/arc.h b/lib/arc.h index 816fa612..a58c3490 100644 --- a/lib/arc.h +++ b/lib/arc.h @@ -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 ); -- cgit v1.2.3