From: Martin Schwenke Date: Sun, 23 Jun 2019 10:59:34 +0000 (+1000) Subject: ctdb-protocol: Variable for return value of strlcpy() should be size_t X-Git-Tag: samba-4.11.0rc1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f388076203c5d3c77ebb66e10d4c2bd6b7cedc7;p=thirdparty%2Fsamba.git ctdb-protocol: Variable for return value of strlcpy() should be size_t This avoids an unnecessary signed/unsigned comparison issue. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/protocol/protocol_util.c b/ctdb/protocol/protocol_util.c index 2a0d42a9f45..026f342bd7d 100644 --- a/ctdb/protocol/protocol_util.c +++ b/ctdb/protocol/protocol_util.c @@ -311,7 +311,7 @@ int ctdb_sock_addr_mask_from_string(const char *str, char *p; char s[64]; /* Much longer than INET6_ADDRSTRLEN */ unsigned int m; - ssize_t len; + size_t len; int ret = 0; if (addr == NULL || mask == NULL) {