diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-14 15:01:14 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-02-14 15:01:14 +0100 |
commit | 14770ad1886ca7f86fc4f3f4841c599aa06fe22a (patch) | |
tree | 9c489fd824c007d072c50870d004f819d2d133bf /sys/src/cmd/page.c | |
parent | 82cec6f585257c2030cc3364e4aee13b1d1c312a (diff) |
page: fix compiler warning
Diffstat (limited to 'sys/src/cmd/page.c')
-rw-r--r-- | sys/src/cmd/page.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/page.c b/sys/src/cmd/page.c index 61595a1be..bc5d8c38d 100644 --- a/sys/src/cmd/page.c +++ b/sys/src/cmd/page.c @@ -377,7 +377,7 @@ popentape(Page *p) 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: |