aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pserve.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-09-13 04:05:27 +0000
committerrsc <devnull@localhost>2005-09-13 04:05:27 +0000
commit54705b4aba944497f0c9ae37f4731d49273647dd (patch)
tree5823abdbbc900cc55363c864f0a8b886ff22c144 /src/cmd/9pserve.c
parent166ab7d5f02aafa8ad56ed83f2048776594adac5 (diff)
downloadplan9port-54705b4aba944497f0c9ae37f4731d49273647dd.tar.gz
plan9port-54705b4aba944497f0c9ae37f4731d49273647dd.tar.bz2
plan9port-54705b4aba944497f0c9ae37f4731d49273647dd.zip
Signedness.
Diffstat (limited to 'src/cmd/9pserve.c')
-rw-r--r--src/cmd/9pserve.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/9pserve.c b/src/cmd/9pserve.c
index 6bd76aaf..1e222ab3 100644
--- a/src/cmd/9pserve.c
+++ b/src/cmd/9pserve.c
@@ -1419,7 +1419,7 @@ stripudirread(Msg* msg)
nn = 0;
for(i = 0; i < rx->count; i += m){
m = BIT16SZ + GBIT16(&rx->data[i]);
- if(statchecku(&rx->data[i], m, 1) < 0)
+ if(statchecku((uchar*)&rx->data[i], m, 1) < 0)
return -1;
if(nn < m)
nn = m;
@@ -1432,7 +1432,7 @@ stripudirread(Msg* msg)
nn = 0;
for(i = 0; i < rx->count; i += m){
m = BIT16SZ + GBIT16(&rx->data[i]);
- if(convM2Du(&rx->data[i], m, &d, str, 1) != m){
+ if(convM2Du((uchar*)&rx->data[i], m, &d, str, 1) != m){
free(buf);
free(str);
return -1;
@@ -1449,7 +1449,7 @@ stripudirread(Msg* msg)
}
rx->count = nn;
- rx->data = buf;
+ rx->data = (char*)buf;
repack(&msg->rx, &msg->rpkt, 0);
free(str);