ref: 31b4efbce9d1ca0ba63afa52735b194ed288991f
parent: 5d4c0da2d75f01c8dbb6874eba0e4ceddf8c756c
author: zamfofex <zamfofex@twdb.moe>
date: Fri Jan 26 09:36:56 EST 2024
make small style changes
--- a/tools/utils.c
+++ b/tools/utils.c
@@ -14,11 +14,11 @@
int p1[2], p2[2];
int pid, fd;
- if (pipe(p1) == -1) return 1;
- if (pipe(p2) == -1) return 1;
+ if (pipe(p1) < 0) return 1;
+ if (pipe(p2) < 0) return 1;
pid = fork();
- if (pid == -1) return 1;
+ if (pid < 0) return 1;
if (pid)
{@@ -47,7 +47,6 @@
execvp(argv[0], argv);
fprintf(stderr, "%s: %s: %s\n", argv0, argv[0], strerror(errno));
-
exit(1);
}
--
⑨