diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/9pserve.c | 6 |
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); |