summaryrefslogtreecommitdiff
path: root/sys/src/cmd/9nfs
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-01-07 04:44:13 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-01-07 04:44:13 +0100
commit772afbe98c7e74be35e7e5318967ce594e4d93e8 (patch)
tree006ef64214c4ab980ff3125ea812f42235706b5b /sys/src/cmd/9nfs
parent9c99d0c8d3236b87bd292ac29d4d1b2d5f550bd5 (diff)
format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64)
Diffstat (limited to 'sys/src/cmd/9nfs')
-rw-r--r--sys/src/cmd/9nfs/9p.c4
-rw-r--r--sys/src/cmd/9nfs/nfs.c2
-rw-r--r--sys/src/cmd/9nfs/nfsmount.c2
-rw-r--r--sys/src/cmd/9nfs/string.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/sys/src/cmd/9nfs/9p.c b/sys/src/cmd/9nfs/9p.c
index 55575c384..74919f2e8 100644
--- a/sys/src/cmd/9nfs/9p.c
+++ b/sys/src/cmd/9nfs/9p.c
@@ -130,7 +130,7 @@ newfid(Session *s)
*(f->owner) = 0;
f->owner = 0;
}
- chat("%ld...", f - s->fids);
+ chat("%zd...", f - s->fids);
f->tstale = nfstime + staletime;
return f;
}
@@ -153,7 +153,7 @@ setfid(Session *s, Fid *f)
void
putfid(Session *s, Fid *f)
{
- chat("putfid %ld...", f-s->fids);
+ chat("putfid %zd...", f-s->fids);
if(s == 0 || f == 0){
clog("putfid(0x%p, 0x%p) %s", s, f, (s ? s->service : "?"));
return;
diff --git a/sys/src/cmd/9nfs/nfs.c b/sys/src/cmd/9nfs/nfs.c
index c01536742..a11a6e3cb 100644
--- a/sys/src/cmd/9nfs/nfs.c
+++ b/sys/src/cmd/9nfs/nfs.c
@@ -330,7 +330,7 @@ xfwalkcr(int type, Xfid *xf, String *elem, long perm)
newxf->urfid = nfid;
nfid->owner = &newxf->urfid;
}else if(newxf->urfid){
- chat("old xfid %ld...", newxf->urfid-s->fids);
+ chat("old xfid %zd...", newxf->urfid-s->fids);
clunkfid(s, nfid);
}else{
newxf->urfid = nfid;
diff --git a/sys/src/cmd/9nfs/nfsmount.c b/sys/src/cmd/9nfs/nfsmount.c
index 583669273..6f0e67b39 100644
--- a/sys/src/cmd/9nfs/nfsmount.c
+++ b/sys/src/cmd/9nfs/nfsmount.c
@@ -159,7 +159,7 @@ srvinit(int fd, char *file, char *addr)
xp->name = "/";
xf = xfid("none", xp, 1);
xf->urfid = f;
- clog("service=%s uid=%s fid=%ld\n",
+ clog("service=%s uid=%s fid=%zd\n",
s->service, xf->uid, xf->urfid - s->fids);
if(tail)
tail->next = s;
diff --git a/sys/src/cmd/9nfs/string.c b/sys/src/cmd/9nfs/string.c
index e71bb2e20..156d4310a 100644
--- a/sys/src/cmd/9nfs/string.c
+++ b/sys/src/cmd/9nfs/string.c
@@ -57,7 +57,7 @@ strprint(int fd)
for(bin = stab; bin < stab+STRHASH; bin++)
for(x=*bin; x; x=x->next)
- fprint(fd, "%ld %s\n", bin-stab, x->str);
+ fprint(fd, "%zd %s\n", bin-stab, x->str);
}
static long