]> git.lizzy.rs Git - plan9front.git/blob - sys/src/libsunrpc/suncall.c
port: sync two longjmp fixes from drawterm
[plan9front.git] / sys / src / libsunrpc / suncall.c
1 #include <u.h>
2 #include <libc.h>
3 #include <thread.h>
4 #include <sunrpc.h>
5
6 void
7 sunCallSetup(SunCall *c, SunProg *prog, uint proc)
8 {
9         c->rpc.prog = prog->prog;
10         c->rpc.vers = prog->vers;
11         c->rpc.proc = proc>>1;
12         c->rpc.iscall = !(proc&1);
13         c->type = proc;
14 }