ref: 14770ad1886ca7f86fc4f3f4841c599aa06fe22a
parent: 82cec6f585257c2030cc3364e4aee13b1d1c312a
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Feb 14 10:01:14 EST 2014
page: fix compiler warning
--- a/sys/src/cmd/page.c
+++ b/sys/src/cmd/page.c
@@ -377,7 +377,7 @@
char mnt[32], cmd[64], *argv[4];
seek(p->fd, 0, 0);
- snprint(mnt, sizeof(mnt), "/n/tapefs.%.12d%.8lux", getpid(), (ulong)p);
+ snprint(mnt, sizeof(mnt), "/n/tapefs.%.12d%.8lux", getpid(), (ulong)(uintptr)p);
snprint(cmd, sizeof(cmd), "exec %s -m %s /fd/0", (char*)p->data, mnt);
switch(rfork(RFPROC|RFMEM|RFFDG|RFREND)){
case -1: