git: 9front

Download patch

ref: 9ce52dc76a4f35f6517b745b3dd9edbd35b4ef3d
parent: 33de363eeb93518023589f198c919f96b9d567c0
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:
--