aboutsummaryrefslogtreecommitdiffstats
path: root/crypting.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypting.c')
-rw-r--r--crypting.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/crypting.c b/crypting.c
index 4091ed08..1cff3be2 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);
@@ -85,7 +86,7 @@ char *passchange (irc_t *irc, void *set, char *value) {
return (NULL);
}
-int setpass (irc_t *irc, char *pass, char* md5sum) {
+int setpass (irc_t *irc, const char *pass, char* md5sum) {
md5_state_t md5state;
md5_byte_t digest[16];
int i, j;