mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Avoid cppcheck warnings; removing unused vars and a bit of cleanup.
Patch by: Clod Patry Review: https://reviewboard.asterisk.org/r/1651 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@354429 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -56,9 +56,8 @@ struct h263_desc {
|
||||
static int h263_open(struct ast_filestream *s)
|
||||
{
|
||||
unsigned int ts;
|
||||
int res;
|
||||
|
||||
if ((res = fread(&ts, 1, sizeof(ts), s->f)) < sizeof(ts)) {
|
||||
if (fread(&ts, 1, sizeof(ts), s->f) < sizeof(ts)) {
|
||||
ast_log(LOG_WARNING, "Empty file!\n");
|
||||
return -1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user