summaryrefslogtreecommitdiffstats
path: root/src/cmd/samterm/plan9.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2006-04-20 20:35:35 +0000
committerrsc <devnull@localhost>2006-04-20 20:35:35 +0000
commitcbf43783043acd39ede85a4e82566b914078b4cb (patch)
treedd443245b63d2a3e005ea7143fb1fde6070e1b71 /src/cmd/samterm/plan9.c
parentdbbfb316fbf21fbc09635283bfc526da0f387df3 (diff)
downloadplan9port-cbf43783043acd39ede85a4e82566b914078b4cb.tar.gz
plan9port-cbf43783043acd39ede85a4e82566b914078b4cb.zip
64-bit fixes from plan 9
Diffstat (limited to 'src/cmd/samterm/plan9.c')
-rw-r--r--src/cmd/samterm/plan9.c4
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);
}