page: fix compiler warning
This commit is contained in:
parent
82cec6f585
commit
14770ad188
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue