change switch_strlen_zero to zstr

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15211 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2009-10-23 16:03:42 +00:00
parent 410b6ebd1f
commit df7637f687
96 changed files with 1033 additions and 1033 deletions
+4 -4
View File
@@ -960,7 +960,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_exists(const char *mod)
{
switch_status_t status;
if (switch_strlen_zero(mod)) {
if (zstr(mod)) {
return SWITCH_STATUS_FALSE;
}
@@ -1166,7 +1166,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_init()
switch_bool_t global = SWITCH_FALSE;
const char *val = switch_xml_attr_soft(ld, "module");
const char *sglobal = switch_xml_attr_soft(ld, "global");
if (switch_strlen_zero(val) || (strchr(val, '.') && !strstr(val, ext) && !strstr(val, EXT))) {
if (zstr(val) || (strchr(val, '.') && !strstr(val, ext) && !strstr(val, EXT))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Invalid extension for %s\n", val);
continue;
}
@@ -1189,7 +1189,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_init()
switch_bool_t global = SWITCH_FALSE;
const char *val = switch_xml_attr_soft(ld, "module");
const char *sglobal = switch_xml_attr_soft(ld, "global");
if (switch_strlen_zero(val) || (strchr(val, '.') && !strstr(val, ext) && !strstr(val, EXT))) {
if (zstr(val) || (strchr(val, '.') && !strstr(val, ext) && !strstr(val, EXT))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "Invalid extension for %s\n", val);
continue;
}
@@ -1230,7 +1230,7 @@ SWITCH_DECLARE(switch_status_t) switch_loadable_module_init()
continue;
}
if (switch_strlen_zero(fname) || (!strstr(fname, ext) && !strstr(fname, EXT))) {
if (zstr(fname) || (!strstr(fname, ext) && !strstr(fname, EXT))) {
continue;
}