From 0789c49b475067e89dcd39ffd2cf11871dcb7e80 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 21 Apr 2011 19:13:25 +0100 Subject: [PATCH] ipif: fix some signed/unsigned pointer warnings --- ipif/forwarder.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ipif/forwarder.c b/ipif/forwarder.c index 66f8690..7a81403 100644 --- a/ipif/forwarder.c +++ b/ipif/forwarder.c @@ -84,7 +84,7 @@ static int n_mechs; static const struct mechanism *mechs[MAXMECHS]; static struct mechdata *md_in[MAXMECHS], *md_out[MAXMECHS]; -static size_t maxprefix, maxsuffix; +static int maxprefix, maxsuffix; static struct buffer buf_in, buf_out; static unsigned char *accum_buf; @@ -183,7 +183,8 @@ static void inbound(void) { static unsigned long npackets, nbytes; struct sockaddr_in this_saddr; - int r, i, different, this_saddrlen; + size_t this_saddrlen; + int r, i, different; const char *emsg; buf_in.start= buf_in.base+1; @@ -429,7 +430,8 @@ int main(int argc, const char *const *const argv_in) { if (keepalive) { tnow= now(); - if (tnow >= nextsendka && public_remote_specd) sendpacket("\300",1); + if (tnow >= nextsendka && public_remote_specd) + sendpacket((unsigned char*)"\300",1); polltimeout= (nextsendka - tnow)*1000; } else { polltimeout= -1; -- 2.30.2