summaryrefslogtreecommitdiff
path: root/snmp_target
diff options
context:
space:
mode:
Diffstat (limited to 'snmp_target')
-rw-r--r--snmp_target/Makefile.in38
-rw-r--r--snmp_target/target_snmp.c4
2 files changed, 2 insertions, 40 deletions
diff --git a/snmp_target/Makefile.in b/snmp_target/Makefile.in
deleted file mode 100644
index 3a79a31a45645..0000000000000
--- a/snmp_target/Makefile.in
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright (c) 2018
-# Hartmut Brandt.
-# All rights reserved.
-#
-# Author: Harti Brandt <harti@freebsd.org>
-#
-# $Begemot: bsnmp/trunk/snmp_ntp/Makefile.in 1487 2008-12-23 19:03:33Z brandt_h $
-#
-MOD= target
-SRCS= ${MOD}_tree.c target_snmp.c
-DEFS= ${MOD}_tree.def
-BMIBS=
-MAN3= snmp_target.3
-MANFILTER= sed -e 's%@MODPATH@%${LIBDIR}/%g' \
- -e 's%@DEFPATH@%${DEFSDIR}/%g' \
- -e 's%@MIBSPATH@%${MIBSDIR}/%g'
-
-XSYM= snmpTargetMIB snmpNotificationMIB snmpUDPDomain snmpNotifyType
-
-LIB= snmp_${MOD}.la
-SHLIB_MAJOR= 6
-SHLIB_MINOR= 0
-
-CFLAGS+= -I$(srcdir) -I$(srcdir)/../lib -I$(builddir) -I$(top_builddir) -I$(srcdir)/../snmpd
-
-CLEANFILES += ${MOD}_oid.h ${MOD}_tree.c ${MOD}_tree.h *.3out
-
-# for bootstrapping
-GENSNMPTREE= $(builddir)/../gensnmptree/gensnmptree -I${srcdir}/../lib
-
-$(LIB): ${MOD}_oid.h ${MOD}_tree.h $(SRCS:.c=.lo)
- $(LIBTOOL) --mode=link $(CC) $(LDLAGS) -module -o $@ $(SRCS:.c=.lo) -rpath $(libdir) -version-info $(SHLIB_MAJOR):$(SHLIB_MINOR)
-
-${MOD}_oid.h: ${MOD}_tree.def
- ${GENSNMPTREE} <${srcdir}/${MOD}_tree.def -e ${XSYM} >$@
-
-${MOD}_tree.h ${MOD}_tree.c : ${MOD}_tree.def
- ${GENSNMPTREE} <${srcdir}/${MOD}_tree.def -l -p ${MOD}_
diff --git a/snmp_target/target_snmp.c b/snmp_target/target_snmp.c
index 5e3f28d065971..1fc16a087f83a 100644
--- a/snmp_target/target_snmp.c
+++ b/snmp_target/target_snmp.c
@@ -42,7 +42,6 @@
#include "asn1.h"
#include "snmp.h"
#include "snmpmod.h"
-#include "lib/snmptc.h"
#define SNMPTREE_TYPES
#include "target_tree.h"
@@ -828,9 +827,10 @@ target_dump(void)
/* XXX: dump the module stats & list of mgmt targets */
}
-const char target_comment[] = \
+static const char target_comment[] = \
"This module implements SNMP Management Target MIB Module defined in RFC 3413.";
+extern const struct snmp_module config;
const struct snmp_module config = {
.comment = target_comment,
.init = target_init,