[PATCH] kdrive: Fix build for opaque InputOption structure.

Peter Hutterer peter.hutterer at who-t.net
Mon Sep 26 22:54:44 PDT 2011


On Mon, Sep 26, 2011 at 10:38:44PM -0700, Jamey Sharp wrote:
> Commit 05284a03f9002b03a66ae355b34790ec02b726f0 missed fixing up
> kdrive's use of the old non-opaque structure.
> 
> Signed-off-by: Jamey Sharp <jamey at minilop.net>

sorry.

Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>

Cheers,
  Peter

> ---
>  hw/kdrive/src/kinfo.c |   12 +-----------
>  1 files changed, 1 insertions(+), 11 deletions(-)
> 
> diff --git a/hw/kdrive/src/kinfo.c b/hw/kdrive/src/kinfo.c
> index 7055fbf..0055b16 100644
> --- a/hw/kdrive/src/kinfo.c
> +++ b/hw/kdrive/src/kinfo.c
> @@ -134,19 +134,9 @@ KdNewPointer (void)
>  void
>  KdFreePointer(KdPointerInfo *pi)
>  {
> -    InputOption *option, *prev = NULL;
> -
>      free(pi->name);
>      free(pi->path);
> -
> -    for (option = pi->options; option; option = option->next) {
> -        free(prev);
> -        free(option->key);
> -        free(option->value);
> -        prev = option;
> -    }
> -
> -    free(prev);
> +    input_option_free_list(&pi->options);
>      free(pi);
>  }
>  
> -- 
> 1.7.5.4
> 


More information about the xorg-devel mailing list