diff options
author | Harald Welte <laforge@gnumonks.org> | 2019-03-22 09:44:42 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2019-04-24 15:43:26 +0200 |
commit | aed46ec97d22c1eccae3578c0010840c3acede0e (patch) | |
tree | 6b45b1a357adabd50707859c32b79f67b8d29b07 /src/gprs/gb_proxy_patch.c | |
parent | d3dcaf0bf29b8380748f92e53822d264cc51c806 (diff) |
gb_proxy: cosmetic: Use 'bool' in data structures where applicable
If we ever only use 0/1 in an 'int', we should have used 'bool'.
Change-Id: I63876f52d5de87e4c99d92669270fd1f487e217c
Diffstat (limited to 'src/gprs/gb_proxy_patch.c')
-rw-r--r-- | src/gprs/gb_proxy_patch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gprs/gb_proxy_patch.c b/src/gprs/gb_proxy_patch.c index 251bb67d6..6235b04f4 100644 --- a/src/gprs/gb_proxy_patch.c +++ b/src/gprs/gb_proxy_patch.c @@ -398,7 +398,7 @@ void gbproxy_clear_patch_filter(struct gbproxy_match *match) { if (match->enable) { regfree(&match->re_comp); - match->enable = 0; + match->enable = false; } talloc_free(match->re_str); match->re_str = NULL; @@ -419,7 +419,7 @@ int gbproxy_set_patch_filter(struct gbproxy_match *match, const char *filter, REG_EXTENDED | REG_NOSUB | REG_ICASE); if (rc == 0) { - match->enable = 1; + match->enable = true; match->re_str = talloc_strdup(tall_sgsn_ctx, filter); return 0; } |