nat: Rename variable from connection to listen
This is the socket we listen for incoming BSCs.
diff --git a/openbsc/src/nat/bsc_nat.c b/openbsc/src/nat/bsc_nat.c
index 791b282..9558e5a 100644
--- a/openbsc/src/nat/bsc_nat.c
+++ b/openbsc/src/nat/bsc_nat.c
@@ -54,7 +54,7 @@
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 @@
}
/* 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);
}