[PATCH:xman 2/2] Fix shadow warning.

Alan Coopersmith alan.coopersmith at oracle.com
Thu May 22 22:45:50 PDT 2014


On 05/21/14 03:17 PM, Thomas Klausner wrote:
> Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
> ---
>   handler.c | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/handler.c b/handler.c
> index 87a928e..fec793d 100644
> --- a/handler.c
> +++ b/handler.c
> @@ -587,17 +587,17 @@ Search(Widget w, XEvent * event, String * params, Cardinal * num_params)
>           case 'O':
>           case 'o':
>               if (file != NULL) {
> -                Widget w;
> +                Widget w2;
>                   char *label;
>
> -                w = CreateManpage(file);
> -                if (w) {
> +                w2 = CreateManpage(file);
> +                if (w2) {
>                       man_pages_shown++;
>
>                       /* Put title into new manual page. */
>
>                       label = man_globals->manpage_title;
> -                    man_globals = GetGlobals(w);
> +                    man_globals = GetGlobals(w2);
>                       strcpy(man_globals->manpage_title, label);
>                       ChangeLabel(man_globals->label, label);
>                   }
>

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list