Commit 02325510 authored by Michael Jerris's avatar Michael Jerris

resolve msvc level 4 warnings

darcs-hash:20060919214843-16063-92ac238fbfb3a361c14d447b210b3f6132e10e9f.gz
parent 9e4e3dbd
......@@ -766,7 +766,7 @@ int soa_sdp_reject_is_needed(sdp_session_t const *session,
}
else {
/* Mode bits do not match */
if (((rm->m_mode & sdp_recvonly) ? sdp_sendonly : 0)
if (((rm->m_mode & sdp_recvonly) ? sdp_sendonly : (unsigned)0)
!= (sm->m_mode & sdp_sendonly))
return 1;
}
......@@ -844,7 +844,7 @@ int soa_sdp_mode_set_is_needed(sdp_session_t const *session,
if (rm) {
/* Mode bits do not match */
if (((rm->m_mode & sdp_recvonly) ? sdp_sendonly : 0)
if (((rm->m_mode & sdp_recvonly) ? sdp_sendonly : (unsigned)0)
!= (sm->m_mode & sdp_sendonly))
return 1;
}
......
......@@ -2439,7 +2439,7 @@ sres_send_dns_query(sres_resolver_t *res,
uint8_t i, i0, N = res->res_n_servers;
sres_socket_t s;
int transient, error = 0;
size_t size, no_edns_size, edns_size;
ssize_t size, no_edns_size, edns_size;
uint16_t id = q->q_id;
uint16_t type = q->q_type;
char const *domain = q->q_name;
......
......@@ -33,9 +33,7 @@
* @author Kai Vehmanen <kai.vehmanen@nokia.com>
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#define STUN_SRV_SERVICE_TCP "_stun._tcp"
#define STUN_SRV_SERVICE_UDP "_stun._udp"
......
......@@ -261,7 +261,7 @@ issize_t su_vsend(su_socket_t s,
su_sockaddr_t const *su, socklen_t sulen)
{
int ret;
DWORD bytes_sent = su_failure;
DWORD bytes_sent = (DWORD)su_failure;
ret = WSASendTo(s,
(LPWSABUF)iov,
......@@ -284,7 +284,7 @@ issize_t su_vrecv(su_socket_t s, su_iovec_t iov[], isize_t iovlen, int flags,
su_sockaddr_t *su, socklen_t *sulen)
{
int ret;
DWORD bytes_recv = su_failure;
DWORD bytes_recv = (DWORD)su_failure;
DWORD dflags = flags;
int fromlen = sulen ? *sulen : 0;
......
......@@ -35,6 +35,8 @@
*
*/
#include "config.h"
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
......
......@@ -3570,8 +3570,8 @@ void tport_send_event(tport_t *self)
static
void tport_send_queue(tport_t *self)
{
int n, i;
size_t total;
int i;
size_t n, total;
msg_t *msg;
msg_iovec_t *iov;
int iovused;
......@@ -4206,7 +4206,7 @@ tport_t *tport_by_name(tport_t const *self, tp_name_t const *tpn)
continue;
if (resolved) {
if (sub->tp_addrlen != sulen ||
if (sub->tp_addrlen != (size_t)sulen ||
memcmp(sub->tp_addr, su, sulen)) {
SU_DEBUG_7(("tport(%p): not found by name " TPN_FORMAT "\n",
self, TPN_ARGS(tpn)));
......
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