From: Andre Noll Date: Thu, 9 Oct 2014 03:06:15 +0000 (+0000) Subject: alsa_write: Use NULL instead of 0. X-Git-Tag: v0.5.5~67 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=f88913cf2a4a6830133355364d0f05bef8e4b260 alsa_write: Use NULL instead of 0. This silences the following sparse warning: sparse: alsa_write.c:128:31: warning: Using plain integer as NULL pointer --- diff --git a/alsa_write.c b/alsa_write.c index 43b26868..b0b21f2b 100644 --- a/alsa_write.c +++ b/alsa_write.c @@ -125,7 +125,7 @@ static int alsa_init(struct private_alsa_write_data *pad, period_time = pad->buffer_time * 250; /* buffer time / 4 */ msg = "could not set period time"; ret = snd_pcm_hw_params_set_period_time_near(pad->handle, hwparams, - &period_time, 0); + &period_time, NULL); if (ret < 0) goto fail;