[pulseaudio-discuss] [PATCH] resampler: Remove duplicate forward declaration of pa_resampler

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Fri Aug 29 06:09:09 PDT 2014


On Fri, 2014-08-29 at 15:02 +0200, David Henningsson wrote:
> This duplicated line also caused a compiler warning on some compilers.
> 
> Signed-off-by: David Henningsson <david.henningsson at canonical.com>
> ---
>  src/pulsecore/resampler.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/src/pulsecore/resampler.h b/src/pulsecore/resampler.h
> index e3463a2..5a84cf0 100644
> --- a/src/pulsecore/resampler.h
> +++ b/src/pulsecore/resampler.h
> @@ -32,8 +32,6 @@
>  typedef struct pa_resampler pa_resampler;
>  typedef struct pa_resampler_impl pa_resampler_impl;
>  
> -typedef struct pa_resampler pa_resampler;
> -
>  struct pa_resampler_impl {
>      void (*free)(pa_resampler *r);
>      void (*update_rates)(pa_resampler *r);

Looks good to me.

-- 
Tanu



More information about the pulseaudio-discuss mailing list