diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-12-05 20:51:51 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-12-05 21:49:39 +0100 |
commit | 73074b0a78ffb91dcb42405ce21dc0a88fcd22b9 (patch) | |
tree | 11ed98dacc463aa8c892c9931039e0b61d32019e | |
parent | 850563d175e29ddcc90472dfee6fd9b261a5dc40 (diff) |
Change a few signed counter variables to unsigned so they roll over later
-rw-r--r-- | include/ctables.h | 4 | ||||
-rw-r--r-- | 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 \<connect> block doesnt need a password, so that |