diff options
author | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-01-23 08:16:28 +0000 |
---|---|---|
committer | rburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-01-23 08:16:28 +0000 |
commit | 7439706b3ba0409fc297d923c9235227a07133a5 (patch) | |
tree | a0b7eed23d44cb402fe35f3d2450ed39e565b87e | |
parent | ea0ac23e43bc1d1a3a8417658dddc76fa94a4d50 (diff) |
Fix a signed vs unsigned warning (this also means Anope will correctly function on networks bigger than the positive size of signed int, but who's counting?)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1927 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | include/extern.h | 4 | ||||
-rw-r--r-- | src/users.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/extern.h b/include/extern.h index a4f84303a..a12c3448a 100644 --- a/include/extern.h +++ b/include/extern.h @@ -920,8 +920,8 @@ E void disconn(ano_socket_t s); E User *userlist[1024]; -E int32 usercnt, opcnt; -E uint32 maxusercnt; +E int32 opcnt; +E uint32 maxusercnt, usercnt; E time_t maxusertime; E void get_user_stats(long *nusers, long *memuse); diff --git a/src/users.c b/src/users.c index bc66da4a2..6d8a6779c 100644 --- a/src/users.c +++ b/src/users.c @@ -19,8 +19,8 @@ User *userlist[1024]; #define HASH2(nick) (((nick)[0]&31)<<5 | ((nick)[1]&31)) -int32 usercnt = 0, opcnt = 0; -uint32 maxusercnt = 0; +int32 opcnt = 0; +uint32 usercnt = 0, maxusercnt = 0; time_t maxusertime; /*************************************************************************/ |