From 73074b0a78ffb91dcb42405ce21dc0a88fcd22b9 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Wed, 5 Dec 2012 20:51:51 +0100 Subject: Change a few signed counter variables to unsigned so they roll over later --- include/ctables.h | 4 ++-- include/users.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/ctables.h b/include/ctables.h index f016dd4c5..02bea198d 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -118,11 +118,11 @@ class CoreExport Command : public ServiceProvider /** used by /stats m */ - long use_count; + unsigned long use_count; /** used by /stats m */ - long total_bytes; + unsigned long total_bytes; /** True if the command is disabled to non-opers */ diff --git a/include/users.h b/include/users.h index 1328bf0cb..0fc63c9b8 100644 --- a/include/users.h +++ b/include/users.h @@ -753,19 +753,19 @@ class CoreExport LocalUser : public User, public InviteBase /** Stats counter for bytes inbound */ - int bytes_in; + unsigned int bytes_in; /** Stats counter for bytes outbound */ - int bytes_out; + unsigned int bytes_out; /** Stats counter for commands inbound */ - int cmds_in; + unsigned int cmds_in; /** Stats counter for commands outbound */ - int cmds_out; + unsigned int cmds_out; /** Password specified by the user when they registered (if any). * This is stored even if the \ block doesnt need a password, so that -- cgit v1.2.3