summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-14 20:03:43 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2008-11-14 20:03:43 +0000
commitf75ebf8d0db6e8eeea9b7f53e520f99740365bf1 (patch)
tree780a7b01d1e589f1c8775b588d52f3d2648241b5 /src
parentf25ca483fa91d87d1b96a82101bb1f838ac47f1a (diff)
Small miscellaneous fixes, pt 3.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1671 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/core/cs_akick.c12
-rw-r--r--src/servers.c2
2 files changed, 6 insertions, 8 deletions
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)
{