diff options
Diffstat (limited to 'src/core/ns_set.c')
-rw-r--r-- | src/core/ns_set.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ns_set.c b/src/core/ns_set.c index 2234a4899..17ab357f0 100644 --- a/src/core/ns_set.c +++ b/src/core/ns_set.c @@ -178,7 +178,7 @@ int do_set_display(User * u, NickCore * nc, char *param) /* First check whether param is a valid nick of the group */ for (i = 0; i < nc->aliases.count; i++) { - na = nc->aliases.list[i]; + na = (NickAlias *)nc->aliases.list[i]; if (!stricmp(na->nick, param)) { param = na->nick; /* Because case may differ */ break; @@ -216,7 +216,7 @@ int do_set_password(User * u, NickCore * nc, char *param) if (nc->pass) free(nc->pass); - nc->pass = smalloc(PASSMAX); + nc->pass = (char *)smalloc(PASSMAX); if (enc_encrypt(param, len, nc->pass, PASSMAX - 1) < 0) { memset(param, 0, len); alog("%s: Failed to encrypt password for %s (set)", s_NickServ, |