From 9e9ba1248f9fa8a43bb98be9bea024aaaa4f0d64 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 14 Oct 2011 22:53:52 -0700 Subject: 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 --- oclock.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'oclock.c') diff --git a/oclock.c b/oclock.c index f9b3552..6a6f2a6 100644 --- a/oclock.c +++ b/oclock.c @@ -31,7 +31,7 @@ in this Software without prior written authorization from The Open Group. #include #include #include "Clock.h" -#include +#include #include #ifdef XKB @@ -44,7 +44,7 @@ in this Software without prior written authorization from The Open Group. static void die ( Widget w, XtPointer client_data, XtPointer call_data ); static void save ( Widget w, XtPointer client_data, XtPointer call_data ); static void usage ( void ); -static void quit ( Widget w, XEvent *event, String *params, +static void quit ( Widget w, XEvent *event, String *params, Cardinal *num_params ); @@ -96,14 +96,14 @@ static XrmOptionDescRec options[] = { {"-transparent","*clock.transparent", XrmoptionNoArg, "TRUE"}, }; -int +int main(int argc, char *argv[]) { XtAppContext xtcontext; Widget toplevel; Arg arg[2]; int i; - + toplevel = XtOpenApplication(&xtcontext, "Clock", options, XtNumber(options), &argc, argv, NULL, sessionShellWidgetClass, NULL, 0); @@ -117,7 +117,7 @@ main(int argc, char *argv[]) (toplevel, XtParseTranslationTable ("WM_PROTOCOLS: quit()")); i = 0; - XtSetArg (arg[i], XtNiconPixmap, + XtSetArg (arg[i], XtNiconPixmap, XCreateBitmapFromData (XtDisplay(toplevel), XtScreen(toplevel)->root, (char *)oclock_bits, @@ -139,7 +139,7 @@ main(int argc, char *argv[]) (void) XSetWMProtocols (XtDisplay(toplevel), XtWindow(toplevel), &wm_delete_window, 1); - XtAddEventHandler(toplevel, (EventMask) 0, TRUE, + XtAddEventHandler(toplevel, (EventMask) 0, TRUE, _XEditResCheckMessages, NULL); XtAppMainLoop(xtcontext); @@ -150,7 +150,7 @@ static void quit(Widget w, XEvent *event, String *params, Cardinal *num_params) { Arg arg; - if (event->type == ClientMessage && + if (event->type == ClientMessage && event->xclient.data.l[0] != wm_delete_window) { #ifdef XKB XkbStdBell(XtDisplay(w), XtWindow(w), 0, XkbBI_BadValue); -- cgit v1.2.3