aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-03-26 06:51:04 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-26 06:51:04 +0100
commit0834fd9b852e6bdeda09c6d878e244e4ac0b222d (patch)
treea0d34a2491449da46c846d69e18ac70d7a3fa0ff
parent7b65c986eb2011ed656eee370912952327350499 (diff)
nat: Rename variable from connection to listen
This is the socket we listen for incoming BSCs.
-rw-r--r--openbsc/src/nat/bsc_nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 791b28210..9558e5a57 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -54,7 +54,7 @@ static const char *config_file = "bsc-nat.cfg";
static char *msc_address = "127.0.0.1";
static struct in_addr local_addr;
static struct bsc_fd msc_connection;
-static struct bsc_fd bsc_connection;
+static struct bsc_fd bsc_listen;
static struct bsc_nat *nat;
@@ -785,7 +785,7 @@ int main(int argc, char** argv)
}
/* wait for the BSC */
- if (listen_for_bsc(&bsc_connection, &local_addr, 5000) < 0) {
+ if (listen_for_bsc(&bsc_listen, &local_addr, 5000) < 0) {
fprintf(stderr, "Failed to listen for BSC.\n");
exit(1);
}