diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:09 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-09-30 18:45:09 +0000 |
commit | 29aea837f59c17fad0dc6020a488124f3ea7d630 (patch) | |
tree | 94701c01ec03db1a096e4f457fa9601891321ca7 /src/core/ns_set.c | |
parent | 1e918b949ce6d96b7f294f659d907546e5d60e44 (diff) |
Various strict fixes..
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1185 5417fbe8-f217-4b02-8779-1006273d7864
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, |