audio: Convert use of atoi to qemu_strtoi
commit441b345313f1355fb2464f3b37a07a1ded85b61a
authorNia Alarie <nia.alarie@gmail.com>
Fri, 16 Mar 2018 14:40:47 +0000 (16 14:40 +0000)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 25 Jun 2018 12:03:30 +0000 (25 14:03 +0200)
treefbacfb2e187830522f02473eb0de5a9ba2420e4b
parentbc753dc09ff33d99bc9004d7286c50de1d5bece6
audio: Convert use of atoi to qemu_strtoi

If qemu_strtoi indicates an error, return the default value.

Signed-off-by: Nia Alarie <nia.alarie@gmail.com>
Message-Id: <20180316144047.30904-1-nia.alarie@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c