1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 05:53:13 +02:00

Removed some signed/unsigned comparison warnings.

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1766 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2008-11-20 03:35:16 +00:00
parent b62f8b67f5
commit 04c8b28ae7
11 changed files with 26 additions and 25 deletions
+1 -1
View File
@@ -915,7 +915,7 @@ struct channel_ {
EList *invites;
struct c_userlist *users;
int16 usercount;
uint16 usercount;
BanData *bd;
+1 -1
View File
@@ -49,7 +49,7 @@ class User : public Extensible
struct u_chanlist *chans; /* Channels user has joined */
struct u_chaninfolist *founder_chans; /* Channels user has identified for */
short invalid_pw_count; /* # of invalid password attempts */
unsigned short invalid_pw_count; /* # of invalid password attempts */
time_t invalid_pw_time; /* Time of last invalid password */
time_t lastmemosend; /* Last time MS SEND command used */
+3 -3
View File
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*
* Based on the original code of Services by Andy Church.
*
* $Id$
*
*/
@@ -62,7 +62,7 @@ int do_badwords(User * u)
ChannelInfo *ci;
BadWord *bw;
int i;
unsigned i;
int need_args = (cmd
&& (!stricmp(cmd, "LIST") || !stricmp(cmd, "CLEAR")));
+4 -4
View File
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*
* Based on the original code of Services by Andy Church.
*
* $Id$
*
*/
@@ -138,7 +138,7 @@ int do_access(User * u)
NickCore *nc;
ChanAccess *access;
int i;
unsigned i;
int level = 0, ulev;
int is_list = (cmd && stricmp(cmd, "LIST") == 0);
int is_servadmin = is_services_admin(u);
@@ -393,7 +393,7 @@ int do_access(User * u)
free(ci->access);
ci->access = NULL;
ci->accesscount = 0;
send_event(EVENT_ACCESS_CLEAR, 2, ci->name, u->nick);
notice_lang(s_ChanServ, u, CHAN_ACCESS_CLEAR, ci->name);
+5 -5
View File
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*
* Based on the original code of Services by Andy Church.
*
* $Id$
*
*/
@@ -61,7 +61,7 @@ int do_list(User * u)
int spattern_size;
char *spattern;
ChannelInfo *ci;
int nchans, i;
unsigned nchans, i;
char buf[BUFSIZE];
int is_servadmin = is_services_admin(u);
int count = 0, from = 0, to = 0, tofree = 0;
@@ -130,11 +130,11 @@ int do_list(User * u)
if (stricmp(keyword, "NOEXPIRE") == 0)
matchflags |= CI_NO_EXPIRE;
}
spattern_size = (strlen(pattern) + 2) * sizeof(char);
spattern = (char *)smalloc(spattern_size);
snprintf(spattern, spattern_size, "#%s", pattern);
notice_lang(s_ChanServ, u, CHAN_LIST_HEADER, pattern);
for (i = 0; i < 256; i++) {
+1 -1
View File
@@ -234,7 +234,7 @@ int do_xop(User * u, const char *xname, int xlev, int *xmsgs)
NickAlias *na;
NickCore *nc;
int i;
unsigned i;
int change = 0;
short ulev;
int is_list = (cmd && stricmp(cmd, "LIST") == 0);
+3 -3
View File
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*
* Based on the original code of Services by Andy Church.
*
* $Id$
*
*/
@@ -62,7 +62,7 @@ int listOut(User * u)
int from = 0, to = 0;
char *tmp = NULL;
char *s = NULL;
int display_counter = 0;
unsigned display_counter = 0;
HostCore *head = NULL;
HostCore *current;
+3 -3
View File
@@ -6,8 +6,8 @@
* Please read COPYING and README for further details.
*
* Based on the original code of Epona by Lara.
* Based on the original code of Services by Andy Church.
*
* Based on the original code of Services by Andy Church.
*
* $Id$
*
*/
@@ -77,7 +77,7 @@ int do_list(User * u)
char *keyword;
NickAlias *na;
NickCore *mync;
int nnicks, i;
unsigned nnicks, i;
char buf[BUFSIZE];
int is_servadmin = is_services_admin(u);
int16 matchflags = 0;
+2 -1
View File
@@ -276,7 +276,8 @@ void display_news(User * u, int16 type)
}
}
} else {
int i, count = 0;
int i;
unsigned count = 0;
for (i = nnews - 1; i >= 0; i--) {
if (count >= NewsCount)
+2 -2
View File
@@ -168,7 +168,7 @@ void load_os_dbase(void)
fatal("Read error on %s", ChanDBName);
return;
}
SAFE(read_int32(&maxusercnt, f));
SAFE(read_int32(&tmp32, f));
maxusertime = tmp32;
@@ -1408,7 +1408,7 @@ void runDefCon(void)
char *defconReverseModes(const char *modes)
{
char *newmodes = NULL;
int i = 0;
unsigned i = 0;
if (!modes) {
return NULL;
}
+1 -1
View File
@@ -524,7 +524,7 @@ class BahamutIRCdProto : public IRCDProto
/* SVSHOLD - set */
void SendSVSHold(const char *nick)
{
send_cmd(ServerName, "SVSHOLD %s %ld :%s", nick, (unsigned int)NSReleaseTimeout, "Being held for registered user");
send_cmd(ServerName, "SVSHOLD %s %u :%s", nick, (unsigned int)NSReleaseTimeout, "Being held for registered user");
}
/* SVSHOLD - release */