aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/plumb/plumb.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/plumb/plumb.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/plumb/plumb.c')
-rw-r--r--src/cmd/plumb/plumb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd/plumb/plumb.c b/src/cmd/plumb/plumb.c
index e0cff912..a10f2c37 100644
--- a/src/cmd/plumb/plumb.c
+++ b/src/cmd/plumb/plumb.c
@@ -1,6 +1,7 @@
#include <u.h>
#include <libc.h>
#include <plumb.h>
+#include <thread.h>
char *plumbfile = nil;
Plumbmsg m;
@@ -36,7 +37,7 @@ gather(void)
}
void
-main(int argc, char *argv[])
+threadmain(int argc, char *argv[])
{
char buf[1024], *p;
int fd, i, input;
@@ -115,5 +116,5 @@ main(int argc, char *argv[])
exits("error");
}
}
- exits(nil);
+ threadexitsall(nil);
}