plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit a2660887c0d607989b8a50822d8882140072a6a5
parent 57ce0d667e0a4f749e6c3528c5a15d8233172ae7
Author: Russ Cox <rsc@swtch.com>
Date:   Wed,  7 May 2008 12:55:48 -0400

misc: more post9pservice callers

Diffstat:
Msrc/cmd/import.c | 2+-
Msrc/cmd/ramfs.c | 2+-
Msrc/cmd/srv.c | 7++++---
3 files changed, 6 insertions(+), 5 deletions(-)

diff --git 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 @@ -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 @@ -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;