diff options
Diffstat (limited to 'src/cmd/samterm/plan9.c')
-rw-r--r-- | src/cmd/samterm/plan9.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/samterm/plan9.c b/src/cmd/samterm/plan9.c index 2aca0842..469d566e 100644 --- a/src/cmd/samterm/plan9.c +++ b/src/cmd/samterm/plan9.c @@ -121,7 +121,7 @@ extproc(void *argv) arg = argv; c = arg[0]; - fd = (int)arg[1]; + fd = (int)(uintptr)arg[1]; i = 0; for(;;){ @@ -190,7 +190,7 @@ extstart(void) plumbc = chancreate(sizeof(int), 0); chansetname(plumbc, "plumbc"); arg[0] = plumbc; - arg[1] = (void*)fd; + arg[1] = (void*)(uintptr)fd; proccreate(extproc, arg, STACK); atexit(removeextern); } |