diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 20:03:43 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-14 20:03:43 +0000 |
commit | f75ebf8d0db6e8eeea9b7f53e520f99740365bf1 (patch) | |
tree | 780a7b01d1e589f1c8775b588d52f3d2648241b5 | |
parent | f25ca483fa91d87d1b96a82101bb1f838ac47f1a (diff) |
Small miscellaneous fixes, pt 3.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1671 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | include/extern.h | 2 | ||||
-rw-r--r-- | src/core/cs_akick.c | 12 | ||||
-rw-r--r-- | src/servers.c | 2 |
3 files changed, 7 insertions, 9 deletions
diff --git a/include/extern.h b/include/extern.h index 3a1cb8cf5..2231eaecd 100644 --- a/include/extern.h +++ b/include/extern.h @@ -883,7 +883,7 @@ E void finish_sync(Server *serv, int sync_links); E void ts6_uid_init(void); E void ts6_uid_increment(unsigned int slot); -E char *ts6_uid_retrieve(void); +E const char *ts6_uid_retrieve(void); /**** sessions.c ****/ diff --git a/src/core/cs_akick.c b/src/core/cs_akick.c index 88ea39661..09584ef5b 100644 --- a/src/core/cs_akick.c +++ b/src/core/cs_akick.c @@ -138,7 +138,7 @@ int akick_view(User * u, int index, ChannelInfo * ci, int *sent_header) strftime_lang(timebuf, sizeof(timebuf), u, STRFTIME_SHORT_DATE_FORMAT, &tm); } else { - snprintf(timebuf, sizeof(timebuf), getstring(u->na, UNKNOWN)); + snprintf(timebuf, sizeof(timebuf), "%s", getstring(u->na, UNKNOWN)); } notice_lang(s_ChanServ, u, @@ -439,7 +439,7 @@ int do_akick(User * u) /* Special case: is it a number/list? Only do search if it isn't. */ if (isdigit(*mask) && strspn(mask, "1234567890,-") == strlen(mask)) { - int count, last = -1; + int last = -1; deleted = process_numlist(mask, &count, akick_del_callback, u, ci, &last); if (!deleted) { @@ -583,11 +583,9 @@ int do_akick(User * u) notice_lang(s_ChanServ, u, CHAN_AKICK_NO_MATCH, chan); } else if (stricmp(cmd, "ENFORCE") == 0) { - Channel *c = findchan(ci->name); - struct c_userlist *cu = NULL; - struct c_userlist *next; - const char *argv[3]; - int count = 0; + c = findchan(ci->name); + cu = NULL; + count = 0; if (!c) { notice_lang(s_ChanServ, u, CHAN_X_NOT_IN_USE, ci->name); diff --git a/src/servers.c b/src/servers.c index 99309db00..8da83b0a3 100644 --- a/src/servers.c +++ b/src/servers.c @@ -602,7 +602,7 @@ void ts6_uid_increment(unsigned int slot) } } -char *ts6_uid_retrieve(void) +const char *ts6_uid_retrieve(void) { if (UseTS6 == 0) { |