Commit c60e9378 authored by Michael Jerris's avatar Michael Jerris
Browse files

more msvc warning fixes

darcs-hash:20060911193208-16063-b2f92284baa7fb9a43e53def96410b1adb69c969.gz
parent 258e11dc
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
/** Complete a HTTP request. */ /** Complete a HTTP request. */
int http_request_complete(msg_t *msg) int http_request_complete(msg_t *msg)
{ {
unsigned len; usize_t len;
http_t *http = http_object(msg); http_t *http = http_object(msg);
su_home_t *home = msg_home(msg); su_home_t *home = msg_home(msg);
...@@ -117,7 +117,7 @@ int http_message_complete(msg_t *msg, http_t *http) ...@@ -117,7 +117,7 @@ int http_message_complete(msg_t *msg, http_t *http)
if (!http->http_content_length) { if (!http->http_content_length) {
http_content_length_t *l; http_content_length_t *l;
http_payload_t *pl; http_payload_t *pl;
unsigned len = 0; usize_t len = 0;
for (pl = http->http_payload; pl; pl = pl->pl_next) for (pl = http->http_payload; pl; pl = pl->pl_next)
len += pl->pl_len; len += pl->pl_len;
......
...@@ -496,7 +496,8 @@ char *msg_params_dup(msg_param_t const **d, msg_param_t const s[], ...@@ -496,7 +496,8 @@ char *msg_params_dup(msg_param_t const **d, msg_param_t const s[],
{ {
char *end = b + xtra; char *end = b + xtra;
char **pp; char **pp;
int i, n; int i;
isize_t n;
n = msg_params_count(s); n = msg_params_count(s);
...@@ -736,7 +737,7 @@ int msg_hostport_d(char **ss, ...@@ -736,7 +737,7 @@ int msg_hostport_d(char **ss,
} }
else { else {
/* IPv6 */ /* IPv6 */
int n = strspn(++s, HEX ":."); size_t n = strspn(++s, HEX ":.");
if (s[n] != ']') return -1; if (s[n] != ']') return -1;
s += n + 1; s += n + 1;
} }
...@@ -999,7 +1000,8 @@ msg_param_t msg_params_find(msg_param_t const params[], msg_param_t token) ...@@ -999,7 +1000,8 @@ msg_param_t msg_params_find(msg_param_t const params[], msg_param_t token)
msg_param_t *msg_params_find_slot(msg_param_t params[], msg_param_t token) msg_param_t *msg_params_find_slot(msg_param_t params[], msg_param_t token)
{ {
if (params && token) { if (params && token) {
int i, n = strlen(token); int i;
size_t n = strlen(token);
assert(n > 0); assert(n > 0);
......
...@@ -272,7 +272,7 @@ tagi_t *msgobjtag_dup(tagi_t *dst, tagi_t const *src, void **bb) ...@@ -272,7 +272,7 @@ tagi_t *msgobjtag_dup(tagi_t *dst, tagi_t const *src, void **bb)
assert(b != NULL); assert(b != NULL);
} }
dst->t_value = (long)mo; dst->t_value = (tag_value_t)mo;
*bb = b; *bb = b;
return dst + 1; return dst + 1;
......
...@@ -962,7 +962,8 @@ static void parse_repeat(sdp_parser_t *p, char *d, sdp_repeat_t **result) ...@@ -962,7 +962,8 @@ static void parse_repeat(sdp_parser_t *p, char *d, sdp_repeat_t **result)
*/ */
unsigned long tt, *interval; unsigned long tt, *interval;
int i, n, N; size_t i;
int n, N;
char *s; char *s;
sdp_repeat_t *r; sdp_repeat_t *r;
...@@ -1029,7 +1030,8 @@ static void parse_repeat(sdp_parser_t *p, char *d, sdp_repeat_t **result) ...@@ -1029,7 +1030,8 @@ static void parse_repeat(sdp_parser_t *p, char *d, sdp_repeat_t **result)
static void parse_zone(sdp_parser_t *p, char *r, sdp_zone_t **result) static void parse_zone(sdp_parser_t *p, char *r, sdp_zone_t **result)
{ {
char *s; char *s;
int i, n, N; size_t i;
int n, N;
sdp_zone_t *z; sdp_zone_t *z;
/* /*
......
...@@ -65,6 +65,9 @@ typedef unsigned _int32 uint32_t; ...@@ -65,6 +65,9 @@ typedef unsigned _int32 uint32_t;
#if HAVE_WINSOCK2_H #if HAVE_WINSOCK2_H
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
extern int inet_pton(int af, char const *src, void *dst);
extern const char *inet_ntop(int af, void const *src,
char *dst, size_t size);
#if !defined(IPPROTO_IPV6) #if !defined(IPPROTO_IPV6)
#if HAVE_SIN6 #if HAVE_SIN6
#include <tpipv6.h> #include <tpipv6.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment