X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=alsa_mix.c;h=1d81e5d9dbabbcef772d182eabe6a03ba5a51915;hp=6520416fb83931ede15a299118a972f5893b2f34;hb=HEAD;hpb=8d106ca317a2c42f35a86ba244f843688f6939e6 diff --git a/alsa_mix.c b/alsa_mix.c index 6520416f..af4adc46 100644 --- a/alsa_mix.c +++ b/alsa_mix.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2012 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2012 Andre Noll , see file COPYING. */ /** \file alsa_mix.c The ALSA mixer plugin. */ @@ -56,7 +52,7 @@ static int alsa_mix_open(const char *dev, struct mixer_handle **handle) PARA_INFO_LOG("snd_mixer_{open,attach,register,load}\n"); *handle = NULL; - h = para_calloc(sizeof(*h)); + h = zalloc(sizeof(*h)); h->card = para_strdup(dev? dev : "hw:0"); ret = snd_mixer_open(&h->mixer, 0); if (ret < 0) {