diff options
| author | David du Colombier <0intro@gmail.com> | 2011-11-22 14:09:52 -0500 |
|---|---|---|
| committer | Russ Cox <rsc@swtch.com> | 2011-11-22 14:09:52 -0500 |
| commit | 2fc68b6d8ebc0479318fa9764bfaa7ff58165fc3 (patch) | |
| tree | 54dffbb8c5e8a15ad7670b5e6c932f06d191a218 /src/cmd/upas/nfs/fs.c | |
| parent | bd51695c9278f9321d420a43a16f575471f32476 (diff) | |
| download | plan9port-2fc68b6d8ebc0479318fa9764bfaa7ff58165fc3.tar.gz plan9port-2fc68b6d8ebc0479318fa9764bfaa7ff58165fc3.zip | |
mailfs: small fixes and plan 9 support
R=rsc
CC=plan9port.codebot
http://codereview.appspot.com/5429044
Diffstat (limited to 'src/cmd/upas/nfs/fs.c')
| -rw-r--r-- | src/cmd/upas/nfs/fs.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/cmd/upas/nfs/fs.c b/src/cmd/upas/nfs/fs.c index fd44c964..ee5c2b9b 100644 --- a/src/cmd/upas/nfs/fs.c +++ b/src/cmd/upas/nfs/fs.c @@ -93,6 +93,7 @@ Srv fs; Qid rootqid; ulong t0; +#ifdef PLAN9PORT void responderror(Req *r) { @@ -101,6 +102,7 @@ responderror(Req *r) rerrstr(e, sizeof e); respond(r, e); } +#endif int qtype(Qid q) @@ -378,7 +380,8 @@ mkbody(Part *p, Qid q) { char *t; int len; - + + USED(q); if(p->msg->part[0] == p) t = p->rawbody; else @@ -571,7 +574,7 @@ filedata(int type, Box *box, Msg *msg, Part *part, char **pp, int *len, int *fre fmtstrinit(&fmt); if(part == msg->part[0]){ if(msg->date) - fmtprint(&fmt, "unixdate %lud %s", msg->date, ctime(msg->date)); + fmtprint(&fmt, "unixdate %ud %s", msg->date, ctime(msg->date)); if(msg->flags){ filedata(Qflags, box, msg, part, pp, nil, freeme, 0, ZQ); fmtprint(&fmt, "flags %s\n", buf); @@ -1202,7 +1205,8 @@ static void fsrecv(void *v) { Req *r; - + + USED(v); while((r = recvp(fsreqchan)) != nil){ switch(r->ifcall.type){ case Tattach: |
