ref: 81ea3f24fa18e3bd313ff6f3b818908cecc98dcd
parent: fc786401185347576d53e1e5b411d92ada469721
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Feb 14 09:21:07 EST 2014
cifsd: fix compiler warning
--- a/sys/src/cmd/ip/cifsd/dir.c
+++ b/sys/src/cmd/ip/cifsd/dir.c
@@ -31,7 +31,7 @@
if(d[i].gid) p += strlen(d[i].gid)+1;
if(d[i].muid) p += strlen(d[i].muid)+1;
}
- o = malloc(n*sizeof(*d) + (int)p);
+ o = malloc(n*sizeof(*d) + (uintptr)p);
memmove(o, d, n*sizeof(*d));
p = (char*)&o[n];
for(i=0; i<n; i++){