aboutsummaryrefslogtreecommitdiff
path: root/audio/audio_template.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-11 00:03:36 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-11 00:03:36 +0000
commite7cad33853d24c0df1f4fb566485a866a8f0e40a (patch)
tree7b0b1ed363b1c98c4932943cd21f9786ad2290aa /audio/audio_template.h
parent575b5dc4dca9ba7cf61f85aa8b511477e2ebb03b (diff)
size_t fix (malc)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1617 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'audio/audio_template.h')
-rw-r--r--audio/audio_template.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/audio/audio_template.h b/audio/audio_template.h
index d985c2eeff..be32c68b3b 100644
--- a/audio/audio_template.h
+++ b/audio/audio_template.h
@@ -131,6 +131,7 @@ static HW *glue (audio_pcm_hw_find_any_passive_, TYPE) (AudioState *s)
if (!hw) {
dolog ("Can not allocate voice `%s' size %d\n",
drv->name, glue (drv->voice_size_, TYPE));
+ return NULL;
}
LIST_INSERT_HEAD (&s->glue (hw_head_, TYPE), hw, entries);
@@ -221,7 +222,7 @@ static SW *glue (audio_pcm_create_voice_pair_, TYPE) (
sw = audio_calloc (AUDIO_FUNC, 1, sizeof (*sw));
if (!sw) {
- dolog ("Could not allocate soft voice `%s' (%d bytes)\n",
+ dolog ("Could not allocate soft voice `%s' (%zu bytes)\n",
sw_name ? sw_name : "unknown", sizeof (*sw));
goto err1;
}