Addressed more issues raised by splint.

This commit is contained in:
Andrew Wood
2023-09-23 21:53:31 +01:00
parent 780b65a648
commit 2033c6085f
8 changed files with 58 additions and 22 deletions
+2 -2
View File
@@ -310,10 +310,10 @@ int main(int argc, char **argv)
pv_remote_init();
retcode = pv_main_loop(state);
pv_remote_fini();
} else if (0 != opts->watch_pid && 0 == opts->watch_fd) {
} else if (0 != opts->watch_pid && -1 == opts->watch_fd) {
/* "Watch all file descriptors of another process" mode. */
retcode = pv_watchpid_loop(state);
} else if (0 != opts->watch_pid && 0 != opts->watch_fd) {
} else if (0 != opts->watch_pid && -1 != opts->watch_fd) {
/* "Watch a specific file descriptor of another process" mode. */
retcode = pv_watchfd_loop(state);
}