From c4052cf9a8c9c9cf3d376db9712b465019779083 Mon Sep 17 00:00:00 2001 From: Sylvain Munaut Date: Thu, 24 Dec 2009 13:27:36 +0100 Subject: gsm_04_11: In gsm411_send_sms_lchan fix transaction id error handling We need transaction_id to be a int (as returned by trans_assign_trans_id) to detect the error condition -1. Signed-off-by: Sylvain Munaut --- openbsc/src/gsm_04_11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc/src/gsm_04_11.c') diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c index 4f19e2ce7..d4572ca18 100644 --- a/openbsc/src/gsm_04_11.c +++ b/openbsc/src/gsm_04_11.c @@ -1018,7 +1018,7 @@ int gsm411_send_sms_lchan(struct gsm_lchan *lchan, struct gsm_sms *sms) struct gsm_trans *trans; u_int8_t *data, *rp_ud_len; u_int8_t msg_ref = 42; - u_int8_t transaction_id; + int transaction_id; int rc; transaction_id = trans_assign_trans_id(lchan->subscr, GSM48_PDISC_SMS, 0); -- cgit v1.2.3