diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-26 19:48:14 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-26 19:48:14 +0000 |
commit | 2a1fd152edcbcad451a31a94171be354f9cbc94d (patch) | |
tree | cc336d91bb85ce45338470c9de5c8fd8717c9c73 /apps/app_alarmreceiver.c | |
parent | 1f35efeea36f2d234d0b20ff2c7017d350001ac6 (diff) |
remove unnecessary checks before calls to ast_strlen_zero
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6864 f38db490-d61c-443f-a65b-d21fe96a405b
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); } |