aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-01-21 10:40:45 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-01-22 11:45:38 +0100
commitad0aef401b38e1802138b4a253018a5159720414 (patch)
tree9f21945bd757ddd178131387d072897750889ba8
parent30cdab776d3f50e3e312aa95d6defecc10d1b355 (diff)
mgcp: Move the SNMP file to _hw.c to move to the NexusAPI
-rw-r--r--src/Makefile.am2
-rw-r--r--src/mgcp_hw.c (renamed from src/mgcp_snmp.c)6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 2a38185..2244153 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -4,7 +4,7 @@ AM_CFLAGS=-Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOSCCP_CFLAGS) $(LIBOSMOVTY_CFLAGS)
sbin_PROGRAMS = cellmgr_ng osmo_stp mgcp_mgw
-mgcp_mgw_SOURCES = mgcp_ss7.c mgcp_ss7_vty.c mgcp_snmp.c thread.c debug.c \
+mgcp_mgw_SOURCES = mgcp_ss7.c mgcp_ss7_vty.c mgcp_hw.c thread.c debug.c \
mgcp/mgcp_protocol.c mgcp/mgcp_network.c mgcp/mgcp_vty.c
mgcp_mgw_LDADD = $(LAFORGE_LIBS) $(NEXUSWARE_C7_LIBS) $(NEXUSWARE_UNIPORTE_LIBS) \
$(LIBOSMOVTY_LIBS) $(LIBOSMOCORE_LIBS) -lpthread -lnetsnmp -lcrypto
diff --git a/src/mgcp_snmp.c b/src/mgcp_hw.c
index e43691a..34ca9ee 100644
--- a/src/mgcp_snmp.c
+++ b/src/mgcp_hw.c
@@ -94,7 +94,7 @@ int mgcp_snmp_init()
int mgcp_snmp_connect(int port, int trunk, int timeslot)
{
- int status;
+ int status;
netsnmp_pdu *response = NULL;
netsnmp_pdu *pdu;
int _rx_port, _tx_port;
@@ -155,8 +155,8 @@ int mgcp_snmp_connect(int port, int trunk, int timeslot)
} else if (status == STAT_TIMEOUT) {
fprintf(stderr, "Timeout for SNMP.\n");
goto failure;
- }
-
+ }
+
if (response)
snmp_free_pdu(response);
return 0;