diff options
-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); |