From ef6c9d7425be907230eb533fbbe2e6ac150a0bbd Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sun, 1 Jul 2001 23:24:08 +0000 Subject: "netbios aliases" and "interfaces" options change from P_STRING to P_LIST (This used to be commit db36ed1d80fcbee16d0a0b5f226e56961f3bf1ec) --- source3/lib/interface.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/interface.c b/source3/lib/interface.c index 3e45d627d3..48070c4446 100644 --- a/source3/lib/interface.c +++ b/source3/lib/interface.c @@ -168,8 +168,7 @@ load the list of network interfaces ****************************************************************************/ void load_interfaces(void) { - char *ptr; - fstring token; + char **ptr; int i; struct iface_struct ifaces[MAX_INTERFACES]; @@ -201,7 +200,7 @@ void load_interfaces(void) /* if we don't have a interfaces line then use all broadcast capable interfaces except loopback */ - if (!ptr || !*ptr) { + if (!ptr || !*ptr || !**ptr) { if (total_probed <= 0) { DEBUG(0,("ERROR: Could not determine network interfaces, you must use a interfaces config line\n")); exit(1); @@ -216,8 +215,9 @@ void load_interfaces(void) return; } - while (next_token(&ptr,token,NULL,sizeof(token))) { - interpret_interface(token); + while (*ptr) { + interpret_interface(*ptr); + ptr++; } if (!local_interfaces) { -- cgit