From db0ef5cc9e1a7aedb62ade34cd25e71f745dacc7 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 16 Nov 2015 10:19:27 +0100 Subject: [PATCH] nwrap: Cast max_hostents to avoid warnings Signed-off-by: Andreas Schneider Reviewed-by: Michael Adam --- lib/nss_wrapper/nss_wrapper.c | 5 +++-- 1 file 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"); -- 2.34.1