aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9p.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-02-29 22:42:33 +0000
committerrsc <devnull@localhost>2004-02-29 22:42:33 +0000
commitf063dad96ec737db0ce213c4df32ecc600637881 (patch)
treea8735ff7873de4f7fda886264158e89493875290 /src/cmd/9p.c
parent91c13e54b5d631b65e2f8344d5e0abd058f78ba1 (diff)
downloadplan9port-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.c5
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();