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 <vamposdecampos@gmail.com>
This commit is contained in:
Alex Badea 2011-01-15 19:43:42 +02:00 committed by Sylvain Munaut
parent 16f80a0e7a
commit d126ab988b
1 changed files with 1 additions and 1 deletions

View File

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