summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2026-03-24 17:13:21 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2026-03-24 17:13:21 -0700
commite6a5e20e5cf431d299121492724914ec442e2a06 (patch)
tree8b5771a4266119e33944b4f259f1ed9820fb3f2b
parent99dd5279ee0826b7688d1d9ada2315a79f6510ac (diff)
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 <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xbiff/-/merge_requests/12>
-rw-r--r--.gitignore4
-rw-r--r--Mailbox.c24
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac4
4 files changed, 19 insertions, 19 deletions
diff --git a/.gitignore b/.gitignore
index 1822ffe..2a9e0c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -71,9 +71,9 @@ core
*.tar.bz2
*.tar.gz
#
-# Add & Override patterns for xbiff
+# Add & Override patterns for xbiff
#
# Edit the following section as needed
# For example, !report.pc overrides *.pc. See 'man gitignore'
-#
+#
xbiff
diff --git a/Mailbox.c b/Mailbox.c
index ee3b282..fda1290 100644
--- a/Mailbox.c
+++ b/Mailbox.c
@@ -94,19 +94,19 @@ typedef union wait waitType;
/*
* The default user interface is to have the mailbox turn itself off whenever
- * the user presses a button in it. Expert users might want to make this
+ * the user presses a button in it. Expert users might want to make this
* happen on EnterWindow. It might be nice to provide support for some sort of
* exit callback so that you can do things like press q to quit.
*/
-static char defaultTranslations[] =
+static char defaultTranslations[] =
"<ButtonPress>: unset()";
static void Set (Widget gw, XEvent *event, String *params, Cardinal *nparams);
static void Check(Widget gw, XEvent *event, String *params, Cardinal *nparams);
static void Unset(Widget gw, XEvent *event, String *params, Cardinal *nparams);
-static XtActionsRec actionsList[] = {
+static XtActionsRec actionsList[] = {
{ "check", Check },
{ "unset", Unset },
{ "set", Set },
@@ -122,7 +122,7 @@ static Dimension defDim = 48;
static Pixmap nopix = None;
static XtResource resources[] = {
- { XtNwidth, XtCWidth, XtRDimension, sizeof (Dimension),
+ { XtNwidth, XtCWidth, XtRDimension, sizeof (Dimension),
goffset (width), XtRDimension, (XtPointer)&defDim },
{ XtNheight, XtCHeight, XtRDimension, sizeof (Dimension),
goffset (height), XtRDimension, (XtPointer)&defDim },
@@ -346,7 +346,7 @@ static Pixmap make_pixmap (Display *dpy, MailboxWidget w, Pixmap bitmap,
fore = w->mailbox.foreground_pixel;
back = w->core.background_pixel;
}
- return XmuCreatePixmapFromBitmap (dpy, w->core.window, bitmap,
+ return XmuCreatePixmapFromBitmap (dpy, w->core.window, bitmap,
width, height, depth, fore, back);
}
@@ -368,7 +368,7 @@ static void Realize (Widget gw, XtValueMask *valuemaskp,
* build up the pixmaps that we'll put into the image
*/
if (w->mailbox.full.bitmap == None) {
- w->mailbox.full.bitmap =
+ w->mailbox.full.bitmap =
XCreateBitmapFromData (dpy, w->core.window, (char *) mailfull_bits,
mailfull_width, mailfull_height);
}
@@ -386,11 +386,11 @@ static void Realize (Widget gw, XtValueMask *valuemaskp,
depth, w->mailbox.flipit,
&w->mailbox.full.width,
&w->mailbox.full.height);
-
+
if (w->mailbox.empty.mask == None && w->mailbox.full.mask == None)
w->mailbox.shapeit = False;
- w->mailbox.interval_id =
+ w->mailbox.interval_id =
XtAppAddTimeOut (XtWidgetToApplicationContext((Widget) w),
w->mailbox.update * 1000, clock_tic, (XtPointer) w);
@@ -473,7 +473,7 @@ static void check_mailbox (MailboxWidget w, Boolean force_redraw, Boolean reset)
* Now check for changes. If reset is set then we want to pretent that
* there is no mail. If the mailbox is empty then we want to turn off
* the flag. Otherwise if the mailbox has changed size then we want to
- * put the flag up, unless the mailbox has been read since the last
+ * put the flag up, unless the mailbox has been read since the last
* write.
*
* The cases are:
@@ -502,10 +502,10 @@ static void check_mailbox (MailboxWidget w, Boolean force_redraw, Boolean reset)
}
} else if (mailboxsize != w->mailbox.last_size) { /* different size */
if (!w->mailbox.once_only || !w->mailbox.flag_up)
- beep(w);
+ beep(w);
if (!w->mailbox.flag_up)
force_redraw = w->mailbox.flag_up = TRUE;
- }
+ }
w->mailbox.last_size = mailboxsize;
if (force_redraw) redraw_mailbox (w);
@@ -569,7 +569,7 @@ static Boolean SetValues (Widget gcurrent, _X_UNUSED Widget grequest,
Boolean redisplay = FALSE;
if (current->mailbox.update != new->mailbox.update) {
- if (current->mailbox.interval_id)
+ if (current->mailbox.interval_id)
XtRemoveTimeOut (current->mailbox.interval_id);
new->mailbox.interval_id =
XtAppAddTimeOut (XtWidgetToApplicationContext(gnew),
diff --git a/Makefile.am b/Makefile.am
index c55f53e..fb1d39e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
-#
+#
# Copyright 2005 Red Hat, Inc.
-#
+#
# 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
@@ -10,7 +10,7 @@
# specific, written prior permission. Red Hat makes no
# representations about the suitability of this software for any purpose. It
# is provided "as is" without express or implied warranty.
-#
+#
# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
# EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
diff --git a/configure.ac b/configure.ac
index 31ddf2d..cfc990c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
dnl Copyright 2005 Red Hat, Inc.
-dnl
+dnl
dnl Permission to use, copy, modify, distribute, and sell this software and its
dnl documentation for any purpose is hereby granted without fee, provided that
dnl the above copyright notice appear in all copies and that both that
@@ -10,7 +10,7 @@ dnl advertising or publicity pertaining to distribution of the software without
dnl specific, written prior permission. Red Hat makes no
dnl representations about the suitability of this software for any purpose. It
dnl is provided "as is" without express or implied warranty.
-dnl
+dnl
dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
dnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR