diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-14 22:53:52 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-10-14 22:53:52 -0700 |
commit | 9e9ba1248f9fa8a43bb98be9bea024aaaa4f0d64 (patch) | |
tree | c8624ed43a21d359e245a61a7d893884cc66660e /oclock.c | |
parent | b1def38874735ca15025edd0d3776387fddeb7f3 (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>
Diffstat (limited to 'oclock.c')
-rw-r--r-- | oclock.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -31,7 +31,7 @@ in this Software without prior written authorization from The Open Group. #include <X11/Shell.h> #include <X11/Xmu/Editres.h> #include "Clock.h" -#include <stdio.h> +#include <stdio.h> #include <stdlib.h> #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 ("<Message>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); |