mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
nwrap: Cast max_hostents to avoid warnings
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
8fad97bc34
commit
db0ef5cc9e
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user