mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 22:54:18 +00:00
Fix dead nested assignments in various modules
This commit is contained in:
1 parent
e53e8a17c1
commit
c47c16b1dd
34 files changed
+82
-120
No files matched your search
@@ -1367,7 +1367,6 @@ SWITCH_STANDARD_API(local_stream_function)
|
||||
char *mycmd = NULL, *argv[5] = { 0 };
|
||||
char *local_stream_name = NULL;
|
||||
int argc = 0;
|
||||
int ok = 0;
|
||||
|
||||
if (zstr(cmd)) {
|
||||
goto usage;
|
||||
@@ -1461,7 +1460,7 @@ SWITCH_STANDARD_API(local_stream_function)
|
||||
stream->write_function(stream, "+OK stream: %s", source->name);
|
||||
switch_thread_rwlock_unlock(source->rwlock);
|
||||
} else {
|
||||
if ((ok = launch_streams(local_stream_name))) {
|
||||
if (launch_streams(local_stream_name)) {
|
||||
stream->write_function(stream, "+OK stream: %s", local_stream_name);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -130,7 +130,6 @@ static switch_status_t tone_stream_file_open(switch_file_handle_t *handle, const
|
||||
char *tmp;
|
||||
int fd = -1;
|
||||
char buf[1024] = "";
|
||||
size_t len;
|
||||
|
||||
memset(&ts, 0, sizeof(ts));
|
||||
|
||||
@@ -172,7 +171,7 @@ static switch_status_t tone_stream_file_open(switch_file_handle_t *handle, const
|
||||
return SWITCH_STATUS_FALSE;
|
||||
}
|
||||
|
||||
while ((len = switch_fd_read_line(fd, buf, sizeof(buf)))) {
|
||||
while (switch_fd_read_line(fd, buf, sizeof(buf))) {
|
||||
teletone_run(&ts, buf);
|
||||
}
|
||||
close(fd);
|
||||
|
||||
Reference in new issue
Block a user