aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-05-07 12:55:48 -0400
committerRuss Cox <rsc@swtch.com>2008-05-07 12:55:48 -0400
commita2660887c0d607989b8a50822d8882140072a6a5 (patch)
tree1a8f85357fec1691166f38e176bf64c23602ef70
parent57ce0d667e0a4f749e6c3528c5a15d8233172ae7 (diff)
downloadplan9port-a2660887c0d607989b8a50822d8882140072a6a5.tar.gz
plan9port-a2660887c0d607989b8a50822d8882140072a6a5.tar.bz2
plan9port-a2660887c0d607989b8a50822d8882140072a6a5.zip
misc: more post9pservice callers
-rw-r--r--src/cmd/import.c2
-rw-r--r--src/cmd/ramfs.c2
-rw-r--r--src/cmd/srv.c7
3 files changed, 6 insertions, 5 deletions
diff --git a/src/cmd/import.c b/src/cmd/import.c
index 88ee7c16..f2001c89 100644
--- a/src/cmd/import.c
+++ b/src/cmd/import.c
@@ -141,7 +141,7 @@ post(char *srv)
fatal("can't create pipe: %r");
/* 0 will be server end, 1 will be client end */
- if(post9pservice(p[1], "plumb") < 0)
+ if(post9pservice(p[1], "plumb", nil) < 0)
fatal("post9pservice plumb: %r");
close(p[1]);
diff --git a/src/cmd/ramfs.c b/src/cmd/ramfs.c
index 82aa328b..bda18b89 100644
--- a/src/cmd/ramfs.c
+++ b/src/cmd/ramfs.c
@@ -178,7 +178,7 @@ main(int argc, char *argv[])
if(!stdio){
mfd[0] = p[0];
mfd[1] = p[0];
- if(post9pservice(p[1], service) < 0)
+ if(post9pservice(p[1], service, nil) < 0)
sysfatal("post9pservice %s: %r", service);
}
diff --git a/src/cmd/srv.c b/src/cmd/srv.c
index e89b85eb..e53c99c8 100644
--- a/src/cmd/srv.c
+++ b/src/cmd/srv.c
@@ -4,6 +4,7 @@
#include <fcall.h>
#include <thread.h>
+int post9p(int, char*);
int debug;
char *aname = "";
char *keypattern = "";
@@ -67,8 +68,8 @@ threadmain(int argc, char **argv)
service = argv[0];
rfork(RFNOTEG);
- if(post9pservice(fd, service) < 0)
- sysfatal("post9pservice: %r");
+ if(post9p(fd, service) < 0)
+ sysfatal("post9p: %r");
threadexitsall(0);
}
@@ -198,7 +199,7 @@ xwrite(void *buf, int n)
*/
#undef _exits
int
-post9pservice(int fd, char *name)
+post9p(int fd, char *name)
{
int i;
char *ns, *s;