mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-25 01:40:10 -05:00
coverity.com fixes - initial round
This commit tries to fix a bunch of issues found by coverity.com. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
f0679e5de2
commit
47f4f9b73b
40 changed files with 283 additions and 133 deletions
|
|
@ -220,13 +220,10 @@ static ssize_t write_manifest_data(snd_tplg_t *tplg)
|
|||
return ret;
|
||||
}
|
||||
|
||||
tplg_log(tplg, 'B', tplg->bin_pos, "manifest: write %d bytes",
|
||||
sizeof(tplg->manifest));
|
||||
tplg_log(tplg, 'B', tplg->bin_pos, "manifest: write %zu bytes", sizeof(tplg->manifest));
|
||||
ret = twrite(tplg, &tplg->manifest, sizeof(tplg->manifest));
|
||||
if (ret >= 0) {
|
||||
tplg_log(tplg, 'B', tplg->bin_pos,
|
||||
"manifest: write %d priv bytes",
|
||||
tplg->manifest.priv.size);
|
||||
tplg_log(tplg, 'B', tplg->bin_pos, "manifest: write %d priv bytes", tplg->manifest.priv.size);
|
||||
ret = twrite(tplg, tplg->manifest_pdata, tplg->manifest.priv.size);
|
||||
}
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue