summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-11-16 10:19:27 +0100
committerMichael Adam <obnox@samba.org>2016-01-11 12:25:31 +0100
commitdb0ef5cc9e1a7aedb62ade34cd25e71f745dacc7 (patch)
treec8c574f15596295725a23c1f3f8ab1eab2472e6b
parent8fad97bc3428879f4c4b16b56c3d8c5f55c9f33b (diff)
downloadsamba-db0ef5cc9e1a7aedb62ade34cd25e71f745dacc7.tar.gz
nwrap: Cast max_hostents to avoid warnings
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
-rw-r--r--lib/nss_wrapper/nss_wrapper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/nss_wrapper/nss_wrapper.c b/lib/nss_wrapper/nss_wrapper.c
index feb807a91f9..a8cbc222ac7 100644
--- a/lib/nss_wrapper/nss_wrapper.c
+++ b/lib/nss_wrapper/nss_wrapper.c
@@ -1566,14 +1566,15 @@ static void nwrap_init(void)
"Error parsing NSS_WRAPPER_MAX_HOSTENTS "
"value or value is too small. "
"Using default value: %lu.",
- max_hostents);
+ (unsigned long)max_hostents);
} else {
max_hostents = max_hostents_tmp;
}
}
/* Initialize hash table */
NWRAP_LOG(NWRAP_LOG_DEBUG,
- "Initializing hash table of size %lu items.", max_hostents);
+ "Initializing hash table of size %lu items.",
+ (unsigned long)max_hostents);
if (hcreate(max_hostents) == 0) {
NWRAP_LOG(NWRAP_LOG_ERROR,
"Failed to initialize hash table");