From 3b8550265780751c96411f5e070feb97ac550391 Mon Sep 17 00:00:00 2001 From: jsorg71 Date: Mon, 24 Dec 2007 03:09:19 +0000 Subject: fix warning --- common/os_calls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common') diff --git a/common/os_calls.c b/common/os_calls.c index 6f831077..bc9a64ea 100644 --- a/common/os_calls.c +++ b/common/os_calls.c @@ -358,7 +358,7 @@ g_tcp_connect(int sck, const char* address, const char* port) g_memset(&s, 0, sizeof(struct sockaddr_in)); s.sin_family = AF_INET; - s.sin_port = htons(atoi(port)); + s.sin_port = htons((tui16)atoi(port)); s.sin_addr.s_addr = inet_addr(address); if (s.sin_addr.s_addr == INADDR_NONE) { @@ -406,7 +406,7 @@ g_tcp_bind(int sck, char* port) memset(&s, 0, sizeof(struct sockaddr_in)); s.sin_family = AF_INET; - s.sin_port = htons(atoi(port)); + s.sin_port = htons((tui16)atoi(port)); s.sin_addr.s_addr = INADDR_ANY; return bind(sck, (struct sockaddr*)&s, sizeof(struct sockaddr_in)); } -- cgit v1.2.1