From: Tollef Fog Heen Date: Mon, 19 Oct 2009 13:21:05 +0000 (+0200) Subject: Constify first parameter to ysc_b64_decode X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1d831f75ebc0be28185cad070ba915c4748cdfc;p=yubikey-server-c Constify first parameter to ysc_b64_decode --- diff --git a/src/util.c b/src/util.c index 4ae2523..83825a2 100644 --- a/src/util.c +++ b/src/util.c @@ -143,7 +143,7 @@ static void ysc_b64_decodeblock(unsigned const char in[4], unsigned char out[3]) out[2] = (unsigned char) ((((in[2] - 'A') << 6) & 0xc0) | (in[3] - 'A')); } -ssize_t ysc_b64_decode(char *s, char **decoded) +ssize_t ysc_b64_decode(const char *s, char **decoded) { ssize_t len = strlen(s); char *tmp; diff --git a/src/util.h b/src/util.h index 5a2e8dc..0bab3df 100644 --- a/src/util.h +++ b/src/util.h @@ -11,7 +11,7 @@ size_t ysc_strftime(char *s, size_t max, const char *format, const struct timeval *tv); char *ysc_b64_encode(char *s, ssize_t len); -ssize_t ysc_b64_decode(char *s, char **r); +ssize_t ysc_b64_decode(const char *s, char **r); #endif /* ysc_util_h */