bsc_api: Remove the _lchan and make the method static..
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
index b8eca6c..33fadd7 100644
--- a/openbsc/src/gsm_04_11.c
+++ b/openbsc/src/gsm_04_11.c
@@ -100,6 +100,8 @@
 	{ 0, NULL }
 };
 
+static int gsm411_send_sms(struct gsm_subscriber_connection *conn, struct gsm_sms *sms);
+
 struct gsm_sms *sms_alloc(void)
 {
 	return talloc_zero(tall_gsms_ctx, struct gsm_sms);
@@ -759,7 +761,7 @@
 	/* check for more messages for this subscriber */
 	sms = db_sms_get_unsent_for_subscr(trans->subscr);
 	if (sms)
-		gsm411_send_sms_lchan(trans->conn, sms);
+		gsm411_send_sms(trans->conn, sms);
 	else
 		gsm411_release_conn(trans->conn);
 
@@ -834,7 +836,7 @@
 	/* check for more messages for this subscriber */
 	sms = db_sms_get_unsent_for_subscr(trans->subscr);
 	if (sms)
-		gsm411_send_sms_lchan(trans->conn, sms);
+		gsm411_send_sms(trans->conn, sms);
 	else
 		gsm411_release_conn(trans->conn);
 
@@ -1030,7 +1032,7 @@
 /* Take a SMS in gsm_sms structure and send it through an already
  * existing lchan. We also assume that the caller ensured this lchan already
  * has a SAPI3 RLL connection! */
-int gsm411_send_sms_lchan(struct gsm_subscriber_connection *conn, struct gsm_sms *sms)
+static int gsm411_send_sms(struct gsm_subscriber_connection *conn, struct gsm_sms *sms)
 {
 	struct msgb *msg = gsm411_msgb_alloc();
 	struct gsm_trans *trans;
@@ -1121,7 +1123,7 @@
 	switch (event) {
 	case GSM_PAGING_SUCCEEDED:
 		use_subscr_con(&lchan->conn);
-		gsm411_send_sms_lchan(&lchan->conn, sms);
+		gsm411_send_sms(&lchan->conn, sms);
 		break;
 	case GSM_PAGING_EXPIRED:
 	case GSM_PAGING_OOM:
@@ -1146,7 +1148,7 @@
 	conn = connection_for_subscr(subscr);
 	if (conn) {
 		use_subscr_con(conn);
-		return gsm411_send_sms_lchan(conn, sms);
+		return gsm411_send_sms(conn, sms);
 	}
 
 	/* if not, we have to start paging */
@@ -1173,7 +1175,7 @@
 		if (!sms)
 			break;
 		use_subscr_con(conn);
-		gsm411_send_sms_lchan(conn, sms);
+		gsm411_send_sms(conn, sms);
 		break;
 	default:
 		break;