From 23e7c65741a0f194ff994dffa0e1e3db9ae35a86 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 13 Sep 2005 03:58:31 +0000 Subject: Signedness bugs for Mac OS X. --- src/cmd/9pserve.c | 5 +++-- src/cmd/vac/vac.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cmd/9pserve.c b/src/cmd/9pserve.c index 32e2a4a7..6bd76aaf 100644 --- a/src/cmd/9pserve.c +++ b/src/cmd/9pserve.c @@ -1379,7 +1379,7 @@ int stripustat(Fcall *f, uchar **fpkt, int s2u) { int n; - char *buf; + uchar *buf; char *str; Dir dir; @@ -1406,8 +1406,9 @@ stripustat(Fcall *f, uchar **fpkt, int s2u) int stripudirread(Msg* msg) { + char *str; int i, m, n, nn; - char *buf, *str; + uchar *buf; Dir d; Fcall* rx; diff --git a/src/cmd/vac/vac.c b/src/cmd/vac/vac.c index 95a905fc..7b12f83e 100644 --- a/src/cmd/vac/vac.c +++ b/src/cmd/vac/vac.c @@ -770,7 +770,7 @@ vacspecial(DirSink *dsink, Dir* dir, char *lname, char *sname, VacFile *vf) entry = dsink->nentry; sink = sinkalloc(dsink->sink->z, bsize, bsize); - sinkwrite(sink, buf, n); + sinkwrite(sink, (uchar*)buf, n); sinkclose(sink); dirsinkwritesink(dsink, sink); sinkfree(sink); -- cgit v1.2.3