mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: junky Review: https://reviewboard.asterisk.org/r/1743/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@362307 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -592,7 +592,7 @@ static int find_transcoders(void)
|
||||
{
|
||||
struct dahdi_transcoder_info info = { 0, };
|
||||
struct format_map map = { { { 0 } } };
|
||||
int fd, res;
|
||||
int fd;
|
||||
unsigned int x, y;
|
||||
|
||||
if ((fd = open("/dev/dahdi/transcode", O_RDWR)) < 0) {
|
||||
@@ -600,7 +600,7 @@ static int find_transcoders(void)
|
||||
return 0;
|
||||
}
|
||||
|
||||
for (info.tcnum = 0; !(res = ioctl(fd, DAHDI_TC_GETINFO, &info)); info.tcnum++) {
|
||||
for (info.tcnum = 0; !ioctl(fd, DAHDI_TC_GETINFO, &info); info.tcnum++) {
|
||||
ast_verb(2, "Found transcoder '%s'.\n", info.name);
|
||||
|
||||
/* Complex codecs need to support signed linear. If the
|
||||
|
Reference in New Issue
Block a user