]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/src/cmd/cpu.c
make bind(2) error handling consistent
[plan9front.git] / sys / src / cmd / cpu.c
index 98532502259875caf1fea3fe708ce6edbd47a4d7..98080347d2175b8c9a29357185421ab281e50876 100644 (file)
@@ -331,7 +331,7 @@ remoteside(void)
        strcpy(buf, VERSION9P);
        if(fversion(fd, 64*1024, buf, sizeof buf) < 0)
                exits("fversion failed");
-       if(mount(fd, -1, "/mnt/term", MCREATE|MREPL, "") < 0)
+       if(mount(fd, -1, "/mnt/term", MCREATE|MREPL, "") == -1)
                exits("mount failed");
 
        close(fd);
@@ -1180,7 +1180,7 @@ lclnoteproc(int netfd)
                return;
        case 0:
                close(pfd[0]);
-               if(mount(pfd[1], -1, "/dev", MBEFORE, "") < 0)
+               if(mount(pfd[1], -1, "/dev", MBEFORE, "") == -1)
                        fprint(2, "cpu: can't mount note proc: %r\n");
                close(pfd[1]);
                return;