mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
compiler warnings.
This commit is contained in:
parent
3c38dbc023
commit
42fb767e5a
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue