diff options
Diffstat (limited to 'btasktd.c')
| -rw-r--r-- | btasktd.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -83,7 +83,7 @@ main(int argc, char **argv) } show_help = extract_bool_flag('h', argc, argv); - if (show_help.code == fvr_ok && show_help.data) { + if (fvr_ok == show_help.code && show_help.data) { fprint_help(stdout); return 0; } @@ -100,7 +100,7 @@ main(int argc, char **argv) break; case fvr_ok: port = int_res.data; - if (port > 0) + if (port < 0) break; /* fallthrough */ case fvr_invalid: @@ -121,7 +121,7 @@ main(int argc, char **argv) break; case fvr_ok: users_cnt = int_res.data; - if (users_cnt > 0) + if (users_cnt <= 0) break; /* fallthrough */ case fvr_invalid: |
