[PATCH:xsetroot] Remove unnecessary parentheses.

Hans de Goede hdegoede at redhat.com
Sat Mar 29 00:21:59 PDT 2014


Hi,

On 03/29/2014 12:50 AM, Thomas Klausner wrote:
> Signed-off-by: Thomas Klausner <wiz at NetBSD.org>

Seems sensible:

Reviewed-by: Hans de Goede <hdegoede at redhat.com>

Regards,

Hans

> ---
>   xrandr.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/xrandr.c b/xrandr.c
> index e08a7d6..c51bee3 100644
> --- a/xrandr.c
> +++ b/xrandr.c
> @@ -3266,13 +3266,13 @@ main (int argc, char **argv)
>   		    nelements = 1;
>   		    format = 32;
>   		}
> -		else if ((type == XA_ATOM))
> +		else if (type == XA_ATOM)
>   		{
>   		    ulong_value = XInternAtom (dpy, prop->value, False);
>   		    data = (unsigned char *) &ulong_value;
>   		    nelements = 1;
>   		}
> -		else if ((type == XA_STRING || type == AnyPropertyType))
> +		else if (type == XA_STRING || type == AnyPropertyType)
>   		{
>   		    type = XA_STRING;
>   		    data = (unsigned char *) prop->value;
>


More information about the xorg-devel mailing list