diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-09-26 13:35:23 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2017-10-05 15:30:05 +0200 |
commit | ff20215db27b390e29ca44e5a63d9e870fa7825d (patch) | |
tree | ba773f14c726fbefa5eccb1c65acbceef4b5ef98 | |
parent | 2da93fc05be36b4494f5903af727a044c2dccdd1 (diff) |
add ';' after OSMO_ASSERT()
Currently, OSMO_ASSERT() is defined such that it ends in a semicolon, hence an
added ';' is redundant. However, the usual way this kind of macro should be
defined is
#define OSMO_ASSERT(x) do { ... } while(0)
so that the compiler requires a trailing semicolon.
To prepare for such a change possibly coming up in libosmocore, add ';' to all
OSMO_ASSERT() users.
Change-Id: If6dce81faee9177737a6e1b572a871aaf7e37138
-rw-r--r-- | src/osmo-bsc_nat/bsc_nat_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bsc_nat/bsc_nat_utils.c b/src/osmo-bsc_nat/bsc_nat_utils.c index a9906b954..3094bbd6e 100644 --- a/src/osmo-bsc_nat/bsc_nat_utils.c +++ b/src/osmo-bsc_nat/bsc_nat_utils.c @@ -206,7 +206,7 @@ void bsc_config_free(struct bsc_config *cfg) llist_del(&cfg->entry); rate_ctr_group_free(cfg->stats.ctrg); cfg->nat->num_bsc--; - OSMO_ASSERT(cfg->nat->num_bsc >= 0) + OSMO_ASSERT(cfg->nat->num_bsc >= 0); talloc_free(cfg); } |