summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-22 08:38:02 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-22 08:44:08 +0200
commitb94a7caa3ada6764c29ab75bf72fbb153c650bc0 (patch)
treebd4e78f6138277e37779ab01241f29017edf3ab1
parent2d21fe079fb57e55d9bac0c69d8527013bf4fbc7 (diff)
downloadsamba-b94a7caa3ada6764c29ab75bf72fbb153c650bc0.tar.gz
samba-b94a7caa3ada6764c29ab75bf72fbb153c650bc0.tar.bz2
samba-b94a7caa3ada6764c29ab75bf72fbb153c650bc0.zip
s3:libsmb: fix compiler warnings in cli_state_create()
metze
-rw-r--r--source3/libsmb/clientgen.c10
1 files 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;
}