diff options
author | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-27 19:31:54 +0000 |
---|---|---|
committer | mogorman <mogorman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-27 19:31:54 +0000 |
commit | 7f2b0a39ea4bb48a13955fb3737b821ff4b0a1a5 (patch) | |
tree | 2db53aac89642dfbf8abe1d2a765fd76bc17106f /app.c | |
parent | 33cdd88430f3166291238739ecbb0759f417d48d (diff) |
Janitor work converting !ast_strlen_zero(a)?a:b
to S_OR functions. from bug note 6805 with minor
modifications.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@15283 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'app.c')
-rw-r--r-- | app.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1059,7 +1059,7 @@ int ast_app_group_get_count(const char *group, const char *category) if (ast_strlen_zero(group)) return 0; - s = (!ast_strlen_zero(category)) ? category : GROUP_CATEGORY_PREFIX; + s = S_OR(category, GROUP_CATEGORY_PREFIX); ast_copy_string(cat, s, sizeof(cat)); chan = NULL; @@ -1089,7 +1089,7 @@ int ast_app_group_match_get_count(const char *groupmatch, const char *category) if (regcomp(®exbuf, groupmatch, REG_EXTENDED | REG_NOSUB)) return 0; - s = (!ast_strlen_zero(category)) ? category : GROUP_CATEGORY_PREFIX; + s = S_OR(category, GROUP_CATEGORY_PREFIX); ast_copy_string(cat, s, sizeof(cat)); chan = NULL; |