[PATCH 5/5] nat: Use ctrl_cmd_send_wqueue to send cmds over the nat-bsc link

Daniel Willmann daniel at totalueberwachung.de
Thu Sep 15 16:04:53 CEST 2011


---
 openbsc/src/osmo-bsc_nat/bsc_nat.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index 2753065..f432622 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -1249,7 +1249,7 @@ static int handle_ctrlif_msg(struct bsc_connection *bsc, struct msgb *msg)
 	talloc_free(cmd);
 	return 0;
 err:
-	ctrl_cmd_send(&bsc->write_queue, cmd);
+	ctrl_cmd_send_wqueue(&bsc->write_queue, cmd);
 	talloc_free(cmd);
 	return 0;
 }
@@ -1657,7 +1657,7 @@ static int forward_to_bsc(struct ctrl_cmd *cmd)
 				goto err;
 			}
 
-			if (ctrl_cmd_send(&bsc->write_queue, bsc_cmd)) {
+			if (ctrl_cmd_send_wqueue(&bsc->write_queue, bsc_cmd)) {
 				cmd->reply = "Sending failed";
 				goto err;
 			}
-- 
1.7.6.1





More information about the OpenBSC mailing list