aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-07-31 21:16:51 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-07-31 21:16:51 +0000
commit660f11be541813be5f09fbaf44d8e7c6d5a5bbfe (patch)
tree1d133bdfc69d11fe81e769825adf3f680ee2f91e /audio
parentPPC: convert Uni-north to qdev: also fixes Mac99 machine crash (diff)
downloadqemu-kvm-660f11be541813be5f09fbaf44d8e7c6d5a5bbfe.tar.gz
qemu-kvm-660f11be541813be5f09fbaf44d8e7c6d5a5bbfe.tar.bz2
qemu-kvm-660f11be541813be5f09fbaf44d8e7c6d5a5bbfe.zip
Fix Sparse warnings: "Using plain integer as NULL pointer"
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'audio')
-rw-r--r--audio/ossaudio.c2
-rw-r--r--audio/sdlaudio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/audio/ossaudio.c b/audio/ossaudio.c
index 0236c2efa..bb727d3de 100644
--- a/audio/ossaudio.c
+++ b/audio/ossaudio.c
@@ -481,7 +481,7 @@ static int oss_init_out (HWVoiceOut *hw, struct audsettings *as)
oss->mmapped = 0;
if (conf.try_mmap) {
oss->pcm_buf = mmap (
- 0,
+ NULL,
hw->samples << hw->info.shift,
PROT_READ | PROT_WRITE,
MAP_SHARED,
diff --git a/audio/sdlaudio.c b/audio/sdlaudio.c
index 5d6fc2411..dafef5dab 100644
--- a/audio/sdlaudio.c
+++ b/audio/sdlaudio.c
@@ -201,7 +201,7 @@ static int sdl_open (SDL_AudioSpec *req, SDL_AudioSpec *obt)
}
#ifndef _WIN32
- pthread_sigmask (SIG_SETMASK, &old, 0);
+ pthread_sigmask (SIG_SETMASK, &old, NULL);
#endif
return status;
}