From f16134194619967ffa53151eeb9538b127aae850 Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 25 Nov 2003 03:02:54 +0000 Subject: fixes to plumber and 9term --- src/cmd/9term/9term.c | 2 +- src/cmd/9term/9term.h | 2 +- src/cmd/9term/FreeBSD.c | 1 + src/cmd/9term/mkfile | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cmd/9term') diff --git a/src/cmd/9term/9term.c b/src/cmd/9term/9term.c index 2db0f904..5b15e75b 100644 --- a/src/cmd/9term/9term.c +++ b/src/cmd/9term/9term.c @@ -1315,7 +1315,7 @@ plumb(uint q0, uint q1) char cbuf[100]; char *w; - if(getchildwdir(pid, childwdir, sizeof childwdir) == 0) + if(getchildwd(rcpid, childwdir, sizeof childwdir) == 0) w = childwdir; else w = wdir; diff --git a/src/cmd/9term/9term.h b/src/cmd/9term/9term.h index bf3e2ba0..134f21b8 100644 --- a/src/cmd/9term/9term.h +++ b/src/cmd/9term/9term.h @@ -109,7 +109,7 @@ void scrdraw(void); void scroll(int); void hostproc(void *arg); void hoststart(void); -void getchildwd(int, char*, int); +int getchildwd(int, char*, int); void plumbstart(void); void plumb(uint, uint); void plumbclick(uint*, uint*); diff --git a/src/cmd/9term/FreeBSD.c b/src/cmd/9term/FreeBSD.c index f67976b1..f59977e1 100644 --- a/src/cmd/9term/FreeBSD.c +++ b/src/cmd/9term/FreeBSD.c @@ -1,4 +1,5 @@ #include "9term.h" +#include int getchildwd(int pid, char *wdir, int bufn) diff --git a/src/cmd/9term/mkfile b/src/cmd/9term/mkfile index d524605b..d7d4a6d0 100644 --- a/src/cmd/9term/mkfile +++ b/src/cmd/9term/mkfile @@ -11,4 +11,3 @@ OFILES=\ LDFLAGS=-lframe -ldraw -lplumb -lthread -l9 -lfmt -lutf -L$X11/lib -lX11 -lutil - -- cgit v1.2.3