diff options
author | Martin Schwenke <martin@meltin.net> | 2019-06-21 14:41:38 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2019-07-05 05:03:23 +0000 |
commit | d855dc2a5faff1eafec287fa8748000d21949684 (patch) | |
tree | ebed91be2f554ded2fd2a9cd30da4f63245191b2 /ctdb/tests | |
parent | 5d8531b05c4112cd5d4f7d192d591fdb102241d6 (diff) | |
download | samba-d855dc2a5faff1eafec287fa8748000d21949684.tar.gz |
ctdb-tests: Don't compare an unsigned value with -1
The dummy reader should never be called, so contains an assert on the
buffer length that should always trigger. Just abort() instead.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/tests')
-rw-r--r-- | ctdb/tests/src/sock_io_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/tests/src/sock_io_test.c b/ctdb/tests/src/sock_io_test.c index d0e424f5620..ba4b6377d6d 100644 --- a/ctdb/tests/src/sock_io_test.c +++ b/ctdb/tests/src/sock_io_test.c @@ -178,7 +178,7 @@ static void test2_reader(int fd) static void test2_dummy_reader(uint8_t *buf, size_t buflen, void *private_data) { - assert(buflen == -1); + abort(); } static void test2_writer(struct sock_queue *queue) |