summaryrefslogtreecommitdiff
path: root/sys/src/cmd/aux/wacom.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2021-05-01 19:58:58 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2021-05-01 19:58:58 +0200
commitee289c241577a3553bfd73211cd81e137ab4fe40 (patch)
tree8f40ebfb2769de543c133120c5dbc468beddc9eb /sys/src/cmd/aux/wacom.c
parent57c21ae441d1b6af38ce310ffec87340488ed84b (diff)
lib9p: remove Srv.srvfd, make postsrv() and threadpostsrv() return the mountable file descriptor, update documentation
Now that we have these new functions, we can also make them return an error instead of calling sysfatal() like postmountsrv(). Remove the confusing Srv.srvfd, as it is only temporarily used and return it from postsrv() instead.
Diffstat (limited to 'sys/src/cmd/aux/wacom.c')
-rw-r--r--sys/src/cmd/aux/wacom.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/aux/wacom.c b/sys/src/cmd/aux/wacom.c
index 5b076873c..876d4ab15 100644
--- a/sys/src/cmd/aux/wacom.c
+++ b/sys/src/cmd/aux/wacom.c
@@ -329,7 +329,6 @@ main()
pipe(fd);
tabletsrv.infd = tabletsrv.outfd = fd[0];
- tabletsrv.srvfd = fd[1];
tabletsrv.tree = alloctree(getuser(), getuser(), 0555, 0);
tfile = createfile(tabletsrv.tree->root, "tablet", getuser(), 0400, 0);
if(rfork(RFPROC | RFMEM | RFNOWAIT | RFNOTEG) > 0) exits(nil);
@@ -349,4 +348,4 @@ main()
sendout(m);
msgdecref(m);
}
-} \ No newline at end of file
+}