From d1d831f75ebc0be28185cad070ba915c4748cdfc Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 19 Oct 2009 15:21:05 +0200 Subject: [PATCH] Constify first parameter to ysc_b64_decode --- src/util.c | 2 +- src/util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 */ -- 2.39.5