mirror of https://gerrit.osmocom.org/libosmocore
fsm: fix OSMO_T_FMT_ARGS: add missing braces
Change-Id: I3ea7cbc8a51d310d9929ca5a805eb1d3d3880793
This commit is contained in:
parent
19b07c3dbe
commit
b71f461263
|
@ -200,7 +200,7 @@ void osmo_fsm_set_dealloc_ctx(void *ctx);
|
|||
fmt, ## args)
|
||||
|
||||
#define OSMO_T_FMT "%c%u"
|
||||
#define OSMO_T_FMT_ARGS(T) ((T) >= 0 ? 'T' : 'X'), ((T) >= 0 ? T : -T)
|
||||
#define OSMO_T_FMT_ARGS(T) ((T) >= 0 ? 'T' : 'X'), ((T) >= 0 ? (T) : -(T))
|
||||
|
||||
int osmo_fsm_register(struct osmo_fsm *fsm);
|
||||
void osmo_fsm_unregister(struct osmo_fsm *fsm);
|
||||
|
|
Loading…
Reference in New Issue