]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
alsa_write: Use NULL instead of 0.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 9 Oct 2014 03:06:15 +0000 (03:06 +0000)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 25 Jan 2015 12:19:18 +0000 (13:19 +0100)
This silences the following sparse warning:

sparse: alsa_write.c:128:31: warning: Using plain integer as NULL pointer

alsa_write.c

index 43b26868bef5abdf3d9268cc93f7b1ca8524693f..b0b21f2be4a6ac64c2d940f499b59757273db743 100644 (file)
@@ -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;