diff options
author | Martin Schwenke <martin@meltin.net> | 2019-06-23 20:59:34 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2019-07-05 05:03:24 +0000 |
commit | 3f388076203c5d3c77ebb66e10d4c2bd6b7cedc7 (patch) | |
tree | 27464078a9ad4a8cdeee7a2eb519e4edc431f66c /ctdb/protocol | |
parent | 248d585ab420ef837001fa9a882101b209bae7d3 (diff) | |
download | samba-3f388076203c5d3c77ebb66e10d4c2bd6b7cedc7.tar.gz |
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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Diffstat (limited to 'ctdb/protocol')
-rw-r--r-- | ctdb/protocol/protocol_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |