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 committed 2009-10-23 16:03:42 +00:00
1 parent 410b6ebd1f
commit df7637f687
96 files changed
+1033 -1033

No files matched your search

@@ -608,7 +608,7 @@ SWITCH_STANDARD_API(stop_local_stream_function)
int argc = 0;
if (switch_strlen_zero(cmd)) {
if (zstr(cmd)) {
goto usage;
}
@@ -621,7 +621,7 @@ SWITCH_STANDARD_API(stop_local_stream_function)
}
local_stream_name = argv[0];
if (switch_strlen_zero(local_stream_name)) {
if (zstr(local_stream_name)) {
goto usage;
}
@@ -662,7 +662,7 @@ SWITCH_STANDARD_API(show_local_stream_function)
switch_mutex_lock(globals.mutex);
if (switch_strlen_zero(cmd)) {
if (zstr(cmd)) {
for (hi = switch_hash_first(NULL, globals.source_hash); hi; hi = switch_hash_next(hi)) {
switch_hash_this(hi, &var, NULL, &val);
if ((source = (local_stream_source_t *) val)) {
@@ -751,7 +751,7 @@ SWITCH_STANDARD_API(start_local_stream_function)
switch_xml_t cfg, xml, directory, param;
int tmp;
if (switch_strlen_zero(cmd)) {
if (zstr(cmd)) {
goto usage;
}
@@ -855,7 +855,7 @@ SWITCH_STANDARD_API(start_local_stream_function)
switch_xml_free(xml);
}
if (switch_strlen_zero(local_stream_name) || switch_strlen_zero(path)) {
if (zstr(local_stream_name) || zstr(path)) {
goto usage;
}
@@ -136,7 +136,7 @@ static int get_dev_by_name(char *name, int in)
int match = 0;
pdi = Pa_GetDeviceInfo(i);
if (switch_strlen_zero(name)) {
if (zstr(name)) {
match = 1;
} else if (pdi && pdi->name && strstr(pdi->name, name)) {
match = 1;