summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 21:34:17 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-09-28 21:34:17 -0700
commita7882c4ab93100954e9e9a20f58e372bf6da612b (patch)
treeced28d3bea0b619592d247ae2201c0c353389f5a
parenta808c25d8d08b6499ae3dd63dad416a75d172cc2 (diff)
Strip trailing whitespace
Performed with: find * -type f | 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>
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac4
-rw-r--r--xev.c38
3 files changed, 24 insertions, 24 deletions
diff --git a/Makefile.am b/Makefile.am
index 2b1677b..a100a1d 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 8e08496..2d83282 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,5 @@
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
@@ -9,7 +9,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
diff --git a/xev.c b/xev.c
index a54b794..a45590e 100644
--- a/xev.c
+++ b/xev.c
@@ -55,7 +55,7 @@ from the X Consortium.
#define OUTER_WINDOW_DEF_HEIGHT (OUTER_WINDOW_MIN_HEIGHT + 100)
#define OUTER_WINDOW_DEF_X 100
#define OUTER_WINDOW_DEF_Y 100
-
+
typedef unsigned long Pixel;
@@ -136,7 +136,7 @@ do_KeyPress (XEvent *eventp)
kc = XKeysymToKeycode(dpy, ks);
kc_set = True;
}
-
+
printf (" root 0x%lx, subw 0x%lx, time %lu, (%d,%d), root:(%d,%d),\n",
e->root, e->subwindow, e->time, e->x, e->y, e->x_root, e->y_root);
printf (" state 0x%x, keycode %u (keysym 0x%lx, %s), same_screen %s,\n",
@@ -166,7 +166,7 @@ do_KeyPress (XEvent *eventp)
}
}
- printf (" XFilterEvent returns: %s\n",
+ printf (" XFilterEvent returns: %s\n",
XFilterEvent (eventp, e->window) ? "True" : "False");
}
@@ -407,7 +407,7 @@ do_ReparentNotify (XEvent *eventp)
printf (" event 0x%lx, window 0x%lx, parent 0x%lx,\n",
e->event, e->window, e->parent);
- printf (" (%d,%d), override %s\n", e->x, e->y,
+ printf (" (%d,%d), override %s\n", e->x, e->y,
e->override_redirect ? Yes : No);
}
@@ -601,9 +601,9 @@ do_ClientMessage (XEvent *eventp)
if (mname) XFree (mname);
- if (e->format == 32
- && e->message_type == wm_protocols
- && (Atom) e->data.l[0] == wm_delete_window)
+ if (e->format == 32
+ && e->message_type == wm_protocols
+ && (Atom) e->data.l[0] == wm_delete_window)
exit (0);
}
@@ -814,8 +814,8 @@ do_RRNotify (XEvent *eventp)
static void
-set_sizehints (XSizeHints *hintp, int min_width, int min_height,
- int defwidth, int defheight, int defx, int defy,
+set_sizehints (XSizeHints *hintp, int min_width, int min_height,
+ int defwidth, int defheight, int defx, int defy,
char *geom)
{
int geom_result;
@@ -998,7 +998,7 @@ main (int argc, char **argv)
default:
usage ();
} /* end switch on - */
- } else
+ } else
usage ();
} /* end for over argc */
@@ -1042,19 +1042,19 @@ main (int argc, char **argv)
}
XFree (xim_styles);
}
- }
+ }
screen = DefaultScreen (dpy);
/* select for all events */
attr.event_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask |
ButtonReleaseMask | EnterWindowMask |
- LeaveWindowMask | PointerMotionMask |
+ LeaveWindowMask | PointerMotionMask |
Button1MotionMask |
Button2MotionMask | Button3MotionMask |
Button4MotionMask | Button5MotionMask |
ButtonMotionMask | KeymapStateMask |
- ExposureMask | VisibilityChangeMask |
+ ExposureMask | VisibilityChangeMask |
StructureNotifyMask | /* ResizeRedirectMask | */
SubstructureNotifyMask | SubstructureRedirectMask |
FocusChangeMask | PropertyChangeMask |
@@ -1071,7 +1071,7 @@ main (int argc, char **argv)
XSelectInput(dpy, w, attr.event_mask);
} else {
set_sizehints (&hints, OUTER_WINDOW_MIN_WIDTH, OUTER_WINDOW_MIN_HEIGHT,
- OUTER_WINDOW_DEF_WIDTH, OUTER_WINDOW_DEF_HEIGHT,
+ OUTER_WINDOW_DEF_WIDTH, OUTER_WINDOW_DEF_HEIGHT,
OUTER_WINDOW_DEF_X, OUTER_WINDOW_DEF_Y, geom);
if (reverse) {
@@ -1110,10 +1110,10 @@ main (int argc, char **argv)
}
if (xim && xim_style) {
- xic = XCreateIC (xim,
- XNInputStyle, xim_style,
- XNClientWindow, w,
- XNFocusWindow, w,
+ xic = XCreateIC (xim,
+ XNInputStyle, xim_style,
+ XNClientWindow, w,
+ XNFocusWindow, w,
NULL);
if (xic == NULL) {
@@ -1293,5 +1293,5 @@ main (int argc, char **argv)
}
XCloseDisplay (dpy);
- return 0;
+ return 0;
}