diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-14 14:55:16 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-14 14:55:16 +0000 |
commit | f08e4a94e46dbbb64e2f29a8147355355e572108 (patch) | |
tree | 5e2134d7196fbeb2e9a6ca17d639a66a88fbc440 /src | |
parent | 056c2a49cc58577e2f54af8cf7aeafbc758650e9 (diff) |
Remove unneccessary temp value which caused a win32 problem by using uint32_t type.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10021 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp index 36a0d8c4a..f7b646754 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1171,7 +1171,6 @@ const char* User::GetCIDRMask(int range) { struct in_addr v4; sockaddr_in* sin; - uint32_t temp; char buffer[16]; if (range > 32) @@ -1187,9 +1186,9 @@ const char* User::GetCIDRMask(int range) */ if(range > 0) { - temp = ntohl(v4.s_addr); - temp = (temp >> (32 - range)) << (32 - range); - v4.s_addr = htonl(temp); + v4.s_addr = ntohl(v4.s_addr); + v4.s_addr = (v4.s_addr >> (32 - range)) << (32 - range); + v4.s_addr = htonl(v4.s_addr); } else { |