1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

ctdb-tcp: Fix signed/unsigned comparisons by declaring as unsigned

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2019-06-22 05:29:53 +10:00 committed by Amitay Isaacs
parent 75747c6106
commit 888ecc74ed
2 changed files with 4 additions and 3 deletions

View File

@ -300,7 +300,8 @@ static int ctdb_tcp_listen_automatic(struct ctdb_context *ctdb)
struct ctdb_tcp *ctcp = talloc_get_type(ctdb->private_data,
struct ctdb_tcp);
ctdb_sock_addr sock;
int lock_fd, i;
int lock_fd;
unsigned int i;
const char *lock_path = CTDB_RUNDIR "/.socket_lock";
struct flock lock;
int one = 1;

View File

@ -70,7 +70,7 @@ static int ctdb_tcp_add_node(struct ctdb_node *node)
*/
static int ctdb_tcp_initialise(struct ctdb_context *ctdb)
{
int i;
unsigned int i;
/* listen on our own address */
if (ctdb_tcp_listen(ctdb) != 0) {
@ -147,7 +147,7 @@ static void ctdb_tcp_shutdown(struct ctdb_context *ctdb)
*/
static int ctdb_tcp_start(struct ctdb_context *ctdb)
{
int i;
unsigned int i;
for (i=0; i < ctdb->num_nodes; i++) {
if (ctdb->nodes[i]->flags & NODE_FLAGS_DELETED) {