aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 5684a8a..2e76b66 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -5,7 +5,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;