From b94a7caa3ada6764c29ab75bf72fbb153c650bc0 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 22 Jul 2011 08:38:02 +0200 Subject: s3:libsmb: fix compiler warnings in cli_state_create() metze --- source3/libsmb/clientgen.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c index 1ac5c2ec6c..766817d98f 100644 --- a/source3/libsmb/clientgen.c +++ b/source3/libsmb/clientgen.c @@ -169,7 +169,7 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx, struct cli_state *cli = NULL; bool allow_smb_signing = false; bool mandatory_signing = false; - size_t length; + socklen_t ss_length; int ret; /* Check the effective uid - make sure we are not setuid */ @@ -246,17 +246,17 @@ struct cli_state *cli_state_create(TALLOC_CTX *mem_ctx, cli->fd = fd; - length = sizeof(cli->src_ss); + ss_length = sizeof(cli->src_ss); ret = getsockname(fd, (struct sockaddr *)(void *)&cli->src_ss, - &length); + &ss_length); if (ret == -1) { goto error; } - length = sizeof(cli->dest_ss); + ss_length = sizeof(cli->dest_ss); ret = getpeername(fd, (struct sockaddr *)(void *)&cli->dest_ss, - &length); + &ss_length); if (ret == -1) { goto error; } -- cgit