diff options
author | rsc <devnull@localhost> | 2005-09-13 03:58:31 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-09-13 03:58:31 +0000 |
commit | 23e7c65741a0f194ff994dffa0e1e3db9ae35a86 (patch) | |
tree | a13e9507f8ec652f2347ce15d0863322ce1a4560 /src/cmd | |
parent | 00a95363d54467899460620e69dc5cddc5361226 (diff) | |
download | plan9port-23e7c65741a0f194ff994dffa0e1e3db9ae35a86.tar.gz plan9port-23e7c65741a0f194ff994dffa0e1e3db9ae35a86.tar.bz2 plan9port-23e7c65741a0f194ff994dffa0e1e3db9ae35a86.zip |
Signedness bugs for Mac OS X.
Diffstat (limited to 'src/cmd')
-rw-r--r-- | src/cmd/9pserve.c | 5 | ||||
-rw-r--r-- | 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); |