summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-01-17 16:00:08 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-01-17 16:00:08 +0100
commit445d00543ada131ad7b9dacb11f40124544001fe (patch)
treee2093299e77c250f4db78123c6da26e05379e551
parent9592c45e347076e0863dbd00fdc6e21bc0b98ec3 (diff)
mgcp: Fix warning about unused variable
mgcp_network.c:335:22: warning: variable ‘cfg’ set but not used [-Wunused-but-set-variable]
-rw-r--r--openbsc/src/libmgcp/mgcp_network.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/openbsc/src/libmgcp/mgcp_network.c b/openbsc/src/libmgcp/mgcp_network.c
index 9ff29439e..ab4d0e391 100644
--- a/openbsc/src/libmgcp/mgcp_network.c
+++ b/openbsc/src/libmgcp/mgcp_network.c
@@ -332,11 +332,9 @@ static int rtp_data_bts(struct osmo_fd *fd, unsigned int what)
char buf[4096];
struct sockaddr_in addr;
struct mgcp_endpoint *endp;
- struct mgcp_config *cfg;
int rc, proto;
endp = (struct mgcp_endpoint *) fd->data;
- cfg = endp->cfg;
rc = receive_from(endp, fd->fd, &addr, buf, sizeof(buf));
if (rc <= 0)