diff options
author | James Golovich <james@gnuinter.net> | 2004-05-09 07:51:44 +0000 |
---|---|---|
committer | James Golovich <james@gnuinter.net> | 2004-05-09 07:51:44 +0000 |
commit | 8ef3b1544be0ac8bfcb77f297c2eff8a6f8b3aec (patch) | |
tree | e02913e8cd2ec7f6236ac862e98d11dc9fd199ce /apps/app_enumlookup.c | |
parent | 3e3642433bbd87d363394bdf8341a6047f1a9eae (diff) |
More ast_strlen_zero changes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2930 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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; } |