ctdb-protocol: Fix typo in type of return variable
authorMartin Schwenke <martin@meltin.net>
Mon, 9 Oct 2017 03:52:30 +0000 (14:52 +1100)
committerMartin Schwenke <martins@samba.org>
Mon, 16 Oct 2017 03:28:19 +0000 (05:28 +0200)
This causes failures to be folded down to 1, which is incorrect.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Volker Lendecke <vl@samba.org>
ctdb/protocol/protocol_util.c

index 68a470fc31679b07cb5fca2c0ca8fbe4f46d4e38..73652e7f060113525161f67f18e282b7e891b7d0 100644 (file)
@@ -265,7 +265,7 @@ int ctdb_sock_addr_from_string(const char *str,
        unsigned port;
        char *endp = NULL;
        size_t len;
-       bool ret;
+       int ret;
 
        if (! with_port) {
                ret = ip_from_string(str, addr);