git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
248d585
)
ctdb-protocol: Variable for return value of strlcpy() should be size_t
author
Martin Schwenke
<martin@meltin.net>
Sun, 23 Jun 2019 10:59:34 +0000
(20:59 +1000)
committer
Amitay Isaacs
<amitay@samba.org>
Fri, 5 Jul 2019 05:03:24 +0000
(
05:03
+0000)
This avoids an unnecessary signed/unsigned comparison issue.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/protocol/protocol_util.c
patch
|
blob
|
history
diff --git
a/ctdb/protocol/protocol_util.c
b/ctdb/protocol/protocol_util.c
index 2a0d42a9f45eb68416541b8fc72220191636e4e1..026f342bd7d2fb3f23f277bbf2589a55c9df211d 100644
(file)
--- 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;
- s
s
ize_t len;
+ size_t len;
int ret = 0;
if (addr == NULL || mask == NULL) {