diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-01-21 10:40:45 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-01-22 11:40:35 +0100 |
commit | 8aaaa406bbee61920226a4c13f2a9e83daca10f3 (patch) | |
tree | 973ef66af719cf9e898dc39adb5021a85c30bab5 /src | |
parent | d183052dae3c9b20ab8d7810428aa7ca93b28ab4 (diff) |
mgcp: Move the SNMP file to _hw.c to move to the NexusAPI
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 2 | ||||
-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; |