diff options
author | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-09 07:51:44 +0000 |
---|---|---|
committer | citats <citats@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-05-09 07:51:44 +0000 |
commit | 9bd61aa747cedeb161b46ca536312d8e569bfbf5 (patch) | |
tree | e02913e8cd2ec7f6236ac862e98d11dc9fd199ce /apps/app_enumlookup.c | |
parent | 7bfd090538d068ea86150b0a7a27d5b2bda1df39 (diff) |
More ast_strlen_zero changes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2930 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_enumlookup.c')
-rwxr-xr-x | apps/app_enumlookup.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_enumlookup.c b/apps/app_enumlookup.c index c03eb97ac..148477e99 100755 --- a/apps/app_enumlookup.c +++ b/apps/app_enumlookup.c @@ -20,6 +20,7 @@ #include <asterisk/config.h> #include <asterisk/module.h> #include <asterisk/enum.h> +#include <asterisk/utils.h> #include <stdlib.h> #include <unistd.h> #include <string.h> @@ -64,7 +65,7 @@ static int enumlookup_exec(struct ast_channel *chan, void *data) char tmp[256]; char *c,*t; struct localuser *u; - if (!data || !strlen(data)) { + if (!data || ast_strlen_zero(data)) { ast_log(LOG_WARNING, "EnumLookup requires an argument (extension)\n"); res = 1; } @@ -128,7 +129,7 @@ static int enumlookup_exec(struct ast_channel *chan, void *data) else res = 0; } - } else if (strlen(tech)) { + } else if (!ast_strlen_zero(tech)) { ast_log(LOG_NOTICE, "Don't know how to handle technology '%s'\n", tech); res = 0; } |