projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0264faa
)
Yang Tse fixed MSVC 6.0 warnings
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 23 Nov 2005 09:10:00 +0000
(09:10 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 23 Nov 2005 09:10:00 +0000
(09:10 +0000)
lib/setup.h
patch
|
blob
|
history
src/main.c
patch
|
blob
|
history
diff --git
a/lib/setup.h
b/lib/setup.h
index
5249d2e
..
ce0fc50
100644
(file)
--- a/
lib/setup.h
+++ b/
lib/setup.h
@@
-169,8
+169,10
@@
typedef unsigned char bool;
#endif
#if defined(ENABLE_IPV6) || defined(USE_SSLEAY)
+#if !defined(_MSC_VER) || (_MSC_VER >= 1300)
#include <ws2tcpip.h>
#endif
+#endif
#if !defined(__GNUC__) || defined(__MINGW32__)
#define sclose(x) closesocket(x)
diff --git
a/src/main.c
b/src/main.c
index
5686114
..
ecc7800
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-1944,7
+1944,7
@@
static ParameterError getparameter(char *flag, /* f or -long-flag */
nextarg,
&config->httppost,
&config->last_post,
-
subletter=='s'
)) /* 's' means literal string */
+
(bool) (subletter=='s')
)) /* 's' means literal string */
return PARAM_BAD_USE;
if(SetHTTPrequest(config, HTTPREQ_POST, &config->httpreq))
return PARAM_BAD_USE;