summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/socket.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index 87740ed65..221a0289b 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -1153,9 +1153,9 @@ uint32 str2ip(const char* ip_str)
// Reorders bytes from network to little endian (Windows).
// Neccessary for sending port numbers to the RO client until Gravity notices that they forgot ntohs() calls.
-uint16 ntows(uint16 neshort)
+uint16 ntows(uint16 netshort)
{
- return ((neshort & 0xFF) << 8) | ((neshort & 0xFF00) >> 8);
+ return ((netshort & 0xFF) << 8) | ((netshort & 0xFF00) >> 8);
}
#ifdef SEND_SHORTLIST