1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-06 16:23:49 +03:00

r21729: Some more tests

This commit is contained in:
Jelmer Vernooij
2007-03-06 23:03:34 +00:00
committed by Gerald (Jerry) Carter
parent 32e39b377a
commit d2baa8218c
2 changed files with 29 additions and 6 deletions

View File

@@ -199,15 +199,14 @@ const char *socket_wrapper_dir(void)
return s;
}
static unsigned int socket_wrapper_default_iface(void)
unsigned int socket_wrapper_default_iface(void)
{
const char *s = getenv("SOCKET_WRAPPER_DEFAULT_IFACE");
if (s) {
unsigned int iface;
if (sscanf(s, "%u", &iface) == 1) {
if (iface >= 1 && iface <= MAX_WRAPPED_INTERFACES) {
return iface;
}
iface = atoi(s);
if (iface >= 1 && iface <= MAX_WRAPPED_INTERFACES) {
return iface;
}
}