diff options
author | rsc <devnull@localhost> | 2005-10-29 17:42:39 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-10-29 17:42:39 +0000 |
commit | 42fb767e5ac61cc43ae649b92855db2b5c497028 (patch) | |
tree | a83065384e97dbfb554c9a223f28c761788501a2 /src/libsunrpc | |
parent | 3c38dbc023af4c40f8b4c1b6a45b5d962d021dd2 (diff) | |
download | plan9port-42fb767e5ac61cc43ae649b92855db2b5c497028.tar.gz plan9port-42fb767e5ac61cc43ae649b92855db2b5c497028.tar.bz2 plan9port-42fb767e5ac61cc43ae649b92855db2b5c497028.zip |
compiler warnings.
Diffstat (limited to 'src/libsunrpc')
-rw-r--r-- | src/libsunrpc/client.c | 3 | ||||
-rw-r--r-- | src/libsunrpc/prog.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/libsunrpc/client.c b/src/libsunrpc/client.c index dbcf7b21..692ab591 100644 --- a/src/libsunrpc/client.c +++ b/src/libsunrpc/client.c @@ -156,7 +156,6 @@ rpcMuxThread(void *v) Out *o, **out; SunRpc rpc; SunClient *cli; - SunStatus ok; cli = v; mout = 16; @@ -263,7 +262,7 @@ if(cli->chatty) fprint(2, "resend %lux %lud %lud\n", o->xid, t, o->t); n = (p[0]<<24)|(p[1]<<16)|(p[2]<<8)|p[3]; p += 4; ep = p+n; - if((ok = sunrpcunpack(p, ep, &p, &rpc)) != SunSuccess){ + if(sunrpcunpack(p, ep, &p, &rpc) != SunSuccess){ fprint(2, "%s: in: %.*H unpack failed\n", argv0, n, buf+4); free(buf); break; diff --git a/src/libsunrpc/prog.c b/src/libsunrpc/prog.c index 914d61fc..5258e3e9 100644 --- a/src/libsunrpc/prog.c +++ b/src/libsunrpc/prog.c @@ -29,7 +29,7 @@ suncallunpack(SunProg *prog, uchar *a, uchar *ea, uchar **pa, SunCall *c) if(c->type < 0 || c->type >= prog->nproc || (unpack=prog->proc[c->type].unpack) == nil) return SunProcUnavail; if((*unpack)(a, ea, pa, c) < 0){ - fprint(2, "%lud %d: '%.*H' unpack failed\n", prog->prog, c->type, (int)(ea-a), a); + fprint(2, "%ud %d: '%.*H' unpack failed\n", prog->prog, c->type, (int)(ea-a), a); return SunGarbageArgs; } return SunSuccess; |