aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9term/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/9term/win.c')
-rw-r--r--src/cmd/9term/win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/9term/win.c b/src/cmd/9term/win.c
index 95d84a32..d1fc5e1c 100644
--- a/src/cmd/9term/win.c
+++ b/src/cmd/9term/win.c
@@ -133,10 +133,10 @@ threadmain(int argc, char **argv)
name = "gnot";
threadnotify(nopipes, 1);
- if((fs = nsmount("acme", "")) < 0)
+ if((fs = nsmount("acme", "")) == 0)
sysfatal("nsmount acme: %r");
ctlfd = fsopen(fs, "new/ctl", ORDWR|OCEXEC);
- if(ctlfd < 0 || fsread(ctlfd, buf, 12) != 12)
+ if(ctlfd == 0 || fsread(ctlfd, buf, 12) != 12)
sysfatal("ctl: %r");
id = atoi(buf);
sprint(buf, "%d/tag", id);