summaryrefslogtreecommitdiff
path: root/sys/src/cmd/aux/disksim.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-07-25 15:54:22 +0000
committercinap_lenrek <cinap_lenrek@felloff.net>2021-07-25 15:54:22 +0000
commite4b5f170cffd0d5e788d9090f8f2a9802fe267e9 (patch)
tree96369172e019fea9450bce7bc70b331a272eaa7a /sys/src/cmd/aux/disksim.c
parent8a8329ad952b0fced970cc0b83e5e87d4a5ceb7a (diff)
libc: change usize to 64-bit for amd64 and arm64, make memory(2) functions use usize
Diffstat (limited to 'sys/src/cmd/aux/disksim.c')
-rw-r--r--sys/src/cmd/aux/disksim.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/src/cmd/aux/disksim.c b/sys/src/cmd/aux/disksim.c
index 3d261ea54..c0b28935b 100644
--- a/sys/src/cmd/aux/disksim.c
+++ b/sys/src/cmd/aux/disksim.c
@@ -349,13 +349,13 @@ Have:
}
void*
-evommem(void *a, void *b, ulong n)
+evommem(void *a, void *b, usize n)
{
return memmove(b, a, n);
}
int
-isnonzero(void *v, ulong n)
+isnonzero(void *v, usize n)
{
uchar *a, *ea;
@@ -375,7 +375,7 @@ rdwrpart(Req *r)
vlong offset;
long count, tot, n, o;
uchar *blk, *dat;
- void *(*move)(void*, void*, ulong);
+ void *(*move)(void*, void*, usize);
q = r->fid->qid.path-Qpart;
if(q < 0 || q > nelem(tab) || !tab[q].inuse || tab[q].vers != r->fid->qid.vers){