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 <tnt@246tNt.com>
This commit is contained in:
Sylvain Munaut 2009-12-24 13:27:36 +01:00 committed by Harald Welte
parent 926fcecc2d
commit c4052cf9a8
1 changed files with 1 additions and 1 deletions

View File

@ -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);