diff options
author | jsorg71 <jsorg71> | 2007-12-24 03:09:19 +0000 |
---|---|---|
committer | jsorg71 <jsorg71> | 2007-12-24 03:09:19 +0000 |
commit | 3b8550265780751c96411f5e070feb97ac550391 (patch) | |
tree | 2f319dd427806861b665c7dbf5ef73d0698c7867 /common | |
parent | 9876b42c4690b805d00c59db6cb87a9354e18042 (diff) | |
download | xrdp-proprietary-3b8550265780751c96411f5e070feb97ac550391.tar.gz xrdp-proprietary-3b8550265780751c96411f5e070feb97ac550391.zip |
fix warning
Diffstat (limited to 'common')
-rw-r--r-- | common/os_calls.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } |