diff options
author | rsc <devnull@localhost> | 2004-02-29 22:42:33 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-02-29 22:42:33 +0000 |
commit | f063dad96ec737db0ce213c4df32ecc600637881 (patch) | |
tree | a8735ff7873de4f7fda886264158e89493875290 /src/cmd/9p.c | |
parent | 91c13e54b5d631b65e2f8344d5e0abd058f78ba1 (diff) | |
download | plan9port-f063dad96ec737db0ce213c4df32ecc600637881.tar.gz plan9port-f063dad96ec737db0ce213c4df32ecc600637881.tar.bz2 plan9port-f063dad96ec737db0ce213c4df32ecc600637881.zip |
Small tweaks to make things build again.
Diffstat (limited to 'src/cmd/9p.c')
-rw-r--r-- | src/cmd/9p.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/9p.c b/src/cmd/9p.c index e9481746..16fa2027 100644 --- a/src/cmd/9p.c +++ b/src/cmd/9p.c @@ -2,6 +2,7 @@ #include <libc.h> #include <fcall.h> #include <fs.h> +#include <thread.h> char *addr; @@ -40,7 +41,7 @@ struct { }; void -main(int argc, char **argv) +threadmain(int argc, char **argv) { char *cmd; int i; @@ -60,7 +61,7 @@ main(int argc, char **argv) for(i=0; i<nelem(cmds); i++){ if(strcmp(cmds[i].s, cmd) == 0){ cmds[i].f(argc, argv); - exits(0); + threadexitsall(0); } } usage(); |