summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/nbt_server/config.mk14
-rw-r--r--source4/nbt_server/register.c7
2 files changed, 12 insertions, 9 deletions
diff --git a/source4/nbt_server/config.mk b/source4/nbt_server/config.mk
index 5e8cfa61da..c498101c22 100644
--- a/source4/nbt_server/config.mk
+++ b/source4/nbt_server/config.mk
@@ -54,11 +54,8 @@ PRIVATE_DEPENDENCIES = \
#######################
# Start SUBSYSTEM NBTD
-[MODULE::NBTD]
-INIT_FUNCTION = server_service_nbtd_init
-SUBSYSTEM = service
+[SUBSYSTEM::NBT_SERVER]
OBJ_FILES = \
- nbt_server.o \
interfaces.o \
register.o \
query.o \
@@ -68,6 +65,13 @@ OBJ_FILES = \
irpc.o
PRIVATE_PROTO_HEADER = nbt_server_proto.h
PRIVATE_DEPENDENCIES = \
- LIBCLI_NBT NBTD_WINS NBTD_DGRAM process_model
+ LIBCLI_NBT NBTD_WINS NBTD_DGRAM
# End SUBSYSTEM NBTD
#######################
+
+[MODULE::service_nbtd]
+INIT_FUNCTION = server_service_nbtd_init
+SUBSYSTEM = service
+OBJ_FILES = \
+ nbt_server.o
+PRIVATE_DEPENDENCIES = NBT_SERVER process_model
diff --git a/source4/nbt_server/register.c b/source4/nbt_server/register.c
index d22903d519..af067d071c 100644
--- a/source4/nbt_server/register.c
+++ b/source4/nbt_server/register.c
@@ -31,7 +31,6 @@
#include "dsdb/samdb/samdb.h"
#include "param/param.h"
-
static void nbtd_start_refresh_timer(struct nbtd_iface_name *iname);
/*
@@ -227,9 +226,9 @@ static void nbtd_register_name_iface(struct nbtd_interface *iface,
/*
register one name on all our interfaces
*/
-static void nbtd_register_name(struct nbtd_server *nbtsrv,
- const char *name, enum nbt_name_type type,
- uint16_t nb_flags)
+void nbtd_register_name(struct nbtd_server *nbtsrv,
+ const char *name, enum nbt_name_type type,
+ uint16_t nb_flags)
{
struct nbtd_interface *iface;