mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
Coverity build fixes.
Like every other toolchain I've tried, my Coverity scanning build has its share of random objections to parts of my Windows API type- checking system. I do wonder if that bright idea was worth the hassle - but it would probably cost all the annoyance all over again to back out now...
This commit is contained in:
@ -305,11 +305,21 @@ void sk_init(void)
|
||||
GET_WINDOWS_FUNCTION(winsock_module, WSAStartup);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, WSACleanup);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, closesocket);
|
||||
#ifndef COVERITY
|
||||
GET_WINDOWS_FUNCTION(winsock_module, ntohl);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, htonl);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, htons);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, ntohs);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, gethostname);
|
||||
#else
|
||||
/* The toolchain I use for Windows Coverity builds doesn't know
|
||||
* the type signatures of these */
|
||||
GET_WINDOWS_FUNCTION_NO_TYPECHECK(winsock_module, ntohl);
|
||||
GET_WINDOWS_FUNCTION_NO_TYPECHECK(winsock_module, htonl);
|
||||
GET_WINDOWS_FUNCTION_NO_TYPECHECK(winsock_module, htons);
|
||||
GET_WINDOWS_FUNCTION_NO_TYPECHECK(winsock_module, ntohs);
|
||||
GET_WINDOWS_FUNCTION_NO_TYPECHECK(winsock_module, gethostname);
|
||||
#endif
|
||||
GET_WINDOWS_FUNCTION(winsock_module, gethostbyname);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, getservbyname);
|
||||
GET_WINDOWS_FUNCTION(winsock_module, inet_addr);
|
||||
|
Reference in New Issue
Block a user