summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-07-01 23:24:08 +0000
committerSimo Sorce <idra@samba.org>2001-07-01 23:24:08 +0000
commitef6c9d7425be907230eb533fbbe2e6ac150a0bbd (patch)
tree15988f8d44011650956bd7565f54217218564c97 /source3/lib
parent2e181c76c468761b16be1deea50f62d39ba520ec (diff)
downloadsamba-ef6c9d7425be907230eb533fbbe2e6ac150a0bbd.tar.gz
samba-ef6c9d7425be907230eb533fbbe2e6ac150a0bbd.tar.bz2
samba-ef6c9d7425be907230eb533fbbe2e6ac150a0bbd.zip
"netbios aliases" and "interfaces" options change from P_STRING to P_LIST
(This used to be commit db36ed1d80fcbee16d0a0b5f226e56961f3bf1ec)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/interface.c10
1 files changed, 5 insertions, 5 deletions
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) {