Imported Upstream version 4.0.0+dfsg1
[abartlet/samba-debian.git] / source4 / nbt_server / nbt_server.c
index 4bccc02cc53bfd2000494b78f0ed7da89e143818..175ad5e4a43a3ebbc21e02eecbb7aecde76d7259 100644 (file)
@@ -30,6 +30,8 @@
 #include "dsdb/samdb/samdb.h"
 #include "param/param.h"
 
+NTSTATUS server_service_nbtd_init(void);
+
 /*
   startup the nbtd task
 */
@@ -39,9 +41,9 @@ static void nbtd_task_init(struct task_server *task)
        NTSTATUS status;
        struct interface *ifaces;
 
-       load_interfaces(task, lpcfg_interfaces(task->lp_ctx), &ifaces);
+       load_interface_list(task, task->lp_ctx, &ifaces);
 
-       if (iface_count(ifaces) == 0) {
+       if (iface_list_count(ifaces) == 0) {
                task_server_terminate(task, "nbtd: no network interfaces configured", false);
                return;
        }