From 772afbe98c7e74be35e7e5318967ce594e4d93e8 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 7 Jan 2016 04:44:13 +0100 Subject: format pointer subtraction results with %zd instead of %ld (for long -> intptr on amd64) --- sys/src/cmd/9nfs/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/src/cmd/9nfs/string.c') 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 -- cgit v1.2.3