From 742e7adaf3488c939c8ac8b64ac39583867b2d0e Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 12 Aug 2025 16:47:50 -0700 Subject: [PATCH] Strip trailing whitespace from source files Performed with: `git ls-files | xargs perl -i -p -e 's{[ \t]+$}{}'` `git diff -w` & `git diff -b` show no diffs from this change Signed-off-by: Alan Coopersmith Part-of: --- .gitignore | 4 ++-- configure.ac | 2 +- src/void.c | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 5db219d..dc06859 100644 --- a/.gitignore +++ b/.gitignore @@ -71,8 +71,8 @@ core *.tar.bz2 *.tar.gz # -# Add & Override patterns for xf86-input-void +# Add & Override patterns for xf86-input-void # # Edit the following section as needed # For example, !report.pc overrides *.pc. See 'man gitignore' -# +# diff --git a/configure.ac b/configure.ac index 4fee0a4..8bd2a23 100644 --- a/configure.ac +++ b/configure.ac @@ -40,7 +40,7 @@ DRIVER_NAME=void AC_SUBST([DRIVER_NAME]) # Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS -m4_ifndef([XORG_MACROS_VERSION], +m4_ifndef([XORG_MACROS_VERSION], [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) XORG_MACROS_VERSION(1.8) XORG_DEFAULT_OPTIONS diff --git a/src/void.c b/src/void.c index 0797572..bdc6493 100644 --- a/src/void.c +++ b/src/void.c @@ -1,6 +1,6 @@ /* * Copyright 1999 by Frederic Lepied, France. - * + * * Permission to use, copy, modify, distribute, and sell this software and its * documentation for any purpose is hereby granted without fee, provided that * the above copyright notice appear in all copies and that both that @@ -9,8 +9,8 @@ * advertising or publicity pertaining to distribution of the software without * specific, written prior permission. Frederic Lepied makes no * representations about the suitability of this software for any purpose. It - * is provided "as is" without express or implied warranty. - * + * is provided "as is" without express or implied warranty. + * * FREDERIC LEPIED DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO * EVENT SHALL FREDERIC LEPIED BE LIABLE FOR ANY SPECIAL, INDIRECT OR @@ -101,7 +101,7 @@ xf86VoidControlProc(DeviceIntPtr device, int what) btn_labels[2] = XIGetKnownProperty(BTN_LABEL_PROP_BTN_RIGHT); pInfo = device->public.devicePrivate; - + switch (what) { case DEVICE_INIT: @@ -110,7 +110,7 @@ xf86VoidControlProc(DeviceIntPtr device, int what) for (i = 0; i < MAXBUTTONS; i++) { map[i + 1] = i + 1; } - + if (InitButtonClassDeviceStruct(device, MAXBUTTONS, btn_labels, @@ -149,7 +149,7 @@ xf86VoidControlProc(DeviceIntPtr device, int what) 0, /* min_res */ 1, /* max_res */ Absolute); - ErrorF("unable to allocate Valuator class device\n"); + ErrorF("unable to allocate Valuator class device\n"); return !Success; } else { @@ -157,7 +157,7 @@ xf86VoidControlProc(DeviceIntPtr device, int what) xf86MotionHistoryAllocate(pInfo); } if (InitPtrFeedbackClassDeviceStruct(device, PointerControlProc) == FALSE) { - ErrorF("unable to init pointer feedback class device\n"); + ErrorF("unable to init pointer feedback class device\n"); return !Success; } break;