From 1eddf6b197ba5fbd3f1cce390396efc7d25c9de9 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 8 Dec 2005 13:30:43 +0100 Subject: Add some const --- crypting.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'crypting.c') diff --git a/crypting.c b/crypting.c index 4091ed08..e46f0b92 100644 --- a/crypting.c +++ b/crypting.c @@ -66,7 +66,8 @@ typedef struct irc /* USE WITH CAUTION! Sets pass without checking */ -void setpassnc (irc_t *irc, char *pass) { +void setpassnc (irc_t *irc, const char *pass) +{ if (!set_find (irc, "password")) set_add (irc, "password", NULL, passchange); @@ -80,12 +81,13 @@ void setpassnc (irc_t *irc, char *pass) { } } -char *passchange (irc_t *irc, void *set, char *value) { +char *passchange (irc_t *irc, void *set, const char *value) { setpassnc (irc, value); return (NULL); } -int setpass (irc_t *irc, char *pass, char* md5sum) { +int setpass (irc_t *irc, const char *pass, const char* md5sum) +{ md5_state_t md5state; md5_byte_t digest[16]; int i, j; -- cgit v1.2.3