From d126ab988b4f63c31e803dccbb2a08ac6f16e9ce Mon Sep 17 00:00:00 2001 From: Alex Badea Date: Sat, 15 Jan 2011 19:43:42 +0200 Subject: gsm 03.41: fix GSM341_MSG_CODE macro argument One usage of the "ms" argument is typoed as "msg". Fix it to prevent subtle future failures. Also paranthesize the macro argument for good measure. Signed-off-by: Alex Badea --- include/osmocore/protocol/gsm_03_41.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/osmocore') diff --git a/include/osmocore/protocol/gsm_03_41.h b/include/osmocore/protocol/gsm_03_41.h index 3b1b7c9f..54365cbc 100644 --- a/include/osmocore/protocol/gsm_03_41.h +++ b/include/osmocore/protocol/gsm_03_41.h @@ -40,7 +40,7 @@ struct gsm341_etws_message { uint8_t data[0]; } __attribute__((packed)); -#define GSM341_MSG_CODE(ms) (ms->serial.code_lo | (msg->serial.code_hi << 4)) +#define GSM341_MSG_CODE(ms) ((ms)->serial.code_lo | ((ms)->serial.code_hi << 4)) /* Section 9.3.2.1 - Geographical Scope */ #define GSM341_GS_CELL_WIDE_IMMED 0 -- cgit v1.2.3