diff options
author | Russell Bryant <russell@russellbryant.com> | 2005-10-26 19:48:14 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2005-10-26 19:48:14 +0000 |
commit | 5187de9ab6e5abc33ee6de4c4b16dbd3e3a5a7a7 (patch) | |
tree | cc336d91bb85ce45338470c9de5c8fd8717c9c73 /apps/app_alarmreceiver.c | |
parent | dbc5c06c94d4472730e25c77f9b4e3d59db6b6ee (diff) |
remove unnecessary checks before calls to ast_strlen_zero
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6864 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_alarmreceiver.c')
-rwxr-xr-x | apps/app_alarmreceiver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/app_alarmreceiver.c b/apps/app_alarmreceiver.c index 3e8fe4cce..0d00d1d34 100755 --- a/apps/app_alarmreceiver.c +++ b/apps/app_alarmreceiver.c @@ -117,7 +117,7 @@ static void database_increment( char *key ) char value[16]; - if(!strlen(db_family)) + if (ast_strlen_zero(db_family)) return; /* If not defined, don't do anything */ res = ast_db_get(db_family, key, value, sizeof(value) - 1); @@ -392,7 +392,7 @@ static int log_events(struct ast_channel *chan, char *signalling_type, event_no FILE *logfile; event_node_t *elp = event; - if(strlen(event_spool_dir)){ + if (!ast_strlen_zero(event_spool_dir)) { /* Make a template */ @@ -516,7 +516,7 @@ static int receive_ademco_contact_id( struct ast_channel *chan, void *data, int ast_verbose(VERBOSE_PREFIX_2 "AlarmReceiver: Incomplete string: %s, trying again...\n", event); if(!got_some_digits){ - got_some_digits = (strlen(event)) ? 1 : 0; + got_some_digits = (!ast_strlen_zero(event)) ? 1 : 0; ack_retries++; } continue; @@ -715,7 +715,7 @@ static int alarmreceiver_exec(struct ast_channel *chan, void *data) * Do we exec a command line at the end? */ - if((!res) && (strlen(event_app)) && (event_head)){ + if((!res) && (!ast_strlen_zero(event_app)) && (event_head)){ ast_log(LOG_DEBUG,"Alarmreceiver: executing: %s\n", event_app); ast_safe_system(event_app); } |