ctdb-common: CID 1507498: Control flow issues (DEADCODE)
authorMartin Schwenke <martin@meltin.net>
Sat, 30 Jul 2022 00:19:56 +0000 (10:19 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 1 Aug 2022 09:19:55 +0000 (09:19 +0000)
commit3aecd6e7b501abfd2c65f8d006a67001f79dd5fc
treeafa9a8b1327948a4ee9cb367e80660dd5ef9556b
parent7a6bd2279897ed389d10f09e5b315a7bca96e7d4
ctdb-common: CID 1507498: Control flow issues (DEADCODE)

Fix typo in error checking.  While here adjust the bottom of the
range, making errno 0 invalid.

Add corresponding test cases using an alternative syntax for errno packets
(#nnn[;] - trailing ';' is optional).

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Mon Aug  1 09:19:55 UTC 2022 on sn-devel-184
ctdb/common/tmon.c
ctdb/tests/UNIT/cunit/tmon_test_002.sh
ctdb/tests/src/tmon_test.c