From f08e4a94e46dbbb64e2f29a8147355355e572108 Mon Sep 17 00:00:00 2001 From: om Date: Mon, 14 Jul 2008 14:55:16 +0000 Subject: 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 --- src/users.cpp | 7 +++---- 1 file 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 { -- cgit v1.2.3