chiark
/
gitweb
/
~mdw
/
userv-utils
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ipif: fix some signed/unsigned pointer warnings
[userv-utils]
/
ipif
/
forwarder.c
diff --git
a/ipif/forwarder.c
b/ipif/forwarder.c
index 66f869080117af064b4b80ed00921b34aabfbb8c..7a81403837e2b791c9aaaf4377cebe764fb21b14 100644
(file)
--- 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 const struct mechanism *mechs[MAXMECHS];
static struct mechdata *md_in[MAXMECHS], *md_out[MAXMECHS];
-static
size_
t maxprefix, maxsuffix;
+static
in
t maxprefix, maxsuffix;
static struct buffer buf_in, buf_out;
static unsigned char *accum_buf;
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;
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;
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 (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;
polltimeout= (nextsendka - tnow)*1000;
} else {
polltimeout= -1;