1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

Yang Tse fixed MSVC 6.0 warnings

This commit is contained in:
Daniel Stenberg 2005-11-23 09:10:00 +00:00
parent 0264faaa4e
commit 599d9642ca
2 changed files with 3 additions and 1 deletions

View File

@ -169,8 +169,10 @@ typedef unsigned char bool;
#endif #endif
#if defined(ENABLE_IPV6) || defined(USE_SSLEAY) #if defined(ENABLE_IPV6) || defined(USE_SSLEAY)
#if !defined(_MSC_VER) || (_MSC_VER >= 1300)
#include <ws2tcpip.h> #include <ws2tcpip.h>
#endif #endif
#endif
#if !defined(__GNUC__) || defined(__MINGW32__) #if !defined(__GNUC__) || defined(__MINGW32__)
#define sclose(x) closesocket(x) #define sclose(x) closesocket(x)

View File

@ -1944,7 +1944,7 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
nextarg, nextarg,
&config->httppost, &config->httppost,
&config->last_post, &config->last_post,
subletter=='s')) /* 's' means literal string */ (bool) (subletter=='s'))) /* 's' means literal string */
return PARAM_BAD_USE; return PARAM_BAD_USE;
if(SetHTTPrequest(config, HTTPREQ_POST, &config->httpreq)) if(SetHTTPrequest(config, HTTPREQ_POST, &config->httpreq))
return PARAM_BAD_USE; return PARAM_BAD_USE;