[PATCH:xf86-input-keyboard 13/21] Fix a shadowing warning, and add const.
Alan Coopersmith
alan.coopersmith at oracle.com
Sat Jul 27 11:22:03 PDT 2013
On 07/27/13 12:17 AM, Thomas Klausner wrote:
> No. I just took the patch as committed, but you're right, const for
> both makes more sense -- attached.
>
> @@ -321,11 +321,10 @@
>
> WSReadInput(InputInfoPtr·pInfo)
> }
> static·void
> -printWsType(char·*type,·char·*devname)
> +printWsType(const·char·*type,·const·char·*name)
> {
> -····xf86Msg(X_PROBED,·"%s:·Keyboard·type:·%s\n",·devname,·type);·
> +····xf86Msg(X_PROBED,·"%s:·Keyboard·type:·%s\n",·name,·type);
> }
> #endif
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