From a29297e707b089cc6e4bb00f3b331127aa585810 Mon Sep 17 00:00:00 2001 From: "Mr. Goblin" Date: Sat, 19 Sep 2026 19:41:23 +0300 Subject: changed conditions formatting ("Yoda") --- btasktd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'btasktd.c') diff --git a/btasktd.c b/btasktd.c index edfa72f..7a6a5af 100644 --- a/btasktd.c +++ b/btasktd.c @@ -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: -- cgit v1.3