tcompiler warnings. - plan9port - [fork] Plan 9 from user space (HTM) git clone git://src.adamsgaard.dk/plan9port (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 42fb767e5ac61cc43ae649b92855db2b5c497028 (DIR) parent 3c38dbc023af4c40f8b4c1b6a45b5d962d021dd2 (HTM) Author: rsc <devnull@localhost> Date: Sat, 29 Oct 2005 17:42:39 +0000 compiler warnings. Diffstat: M src/libsunrpc/client.c | 3 +-- M src/libsunrpc/prog.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) --- (DIR) diff --git a/src/libsunrpc/client.c b/src/libsunrpc/client.c t@@ -156,7 +156,6 @@ rpcMuxThread(void *v) Out *o, **out; SunRpc rpc; SunClient *cli; - SunStatus ok; cli = v; mout = 16; t@@ -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; (DIR) diff --git a/src/libsunrpc/prog.c b/src/libsunrpc/prog.c t@@ -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;