diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-09-21 20:51:06 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-09-21 20:51:06 -0700 |
commit | 8b1af8f1ef0d7cce970a05fe36b7e8e63aa18068 (patch) | |
tree | dd68f5762374eabb4628d29f1d8eb4ff4b3e1e0b /xclock.c | |
parent | ce8173a20046c9c21ccfcea45daa0647905c1714 (diff) |
Trim trailing whitespaces
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'xclock.c')
-rw-r--r-- | xclock.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -88,7 +88,7 @@ static XrmOptionDescRec options[] = { #endif }; -static void quit ( Widget w, XEvent *event, String *params, +static void quit ( Widget w, XEvent *event, String *params, Cardinal *num_params ); static XtActionsRec xclock_actions[] = { @@ -116,14 +116,14 @@ Syntax(char *call) exit(1); } -static void +static void die(Widget w, XtPointer client_data, XtPointer call_data) { XCloseDisplay(XtDisplayOfObject(w)); exit(0); } -static void +static void quit(Widget w, XEvent *event, String *params, Cardinal *num_params) { Arg arg; @@ -143,7 +143,7 @@ quit(Widget w, XEvent *event, String *params, Cardinal *num_params) } } -static void +static void save(Widget w, XtPointer client_data, XtPointer call_data) { XtCheckpointToken token = (XtCheckpointToken) call_data; @@ -151,7 +151,7 @@ save(Widget w, XtPointer client_data, XtPointer call_data) token->save_success = True; } -int +int main(int argc, char *argv[]) { Widget toplevel; @@ -183,7 +183,7 @@ main(int argc, char *argv[]) * This is a hack so that wm_delete_window will do something useful * in this single-window application. */ - XtOverrideTranslations(toplevel, + XtOverrideTranslations(toplevel, XtParseTranslationTable ("<Message>WM_PROTOCOLS: quit()")); XtSetArg(arg, XtNiconPixmap, &icon_pixmap); @@ -201,7 +201,7 @@ main(int argc, char *argv[]) if (icon_pixmap == None) { arg.value = (XtArgVal)XCreateBitmapFromData(XtDisplay(toplevel), XtScreen(toplevel)->root, - (char *)clock_mask_bits, clock_mask_width, + (char *)clock_mask_bits, clock_mask_width, clock_mask_height); XtSetValues (toplevel, &arg, ONE); } @@ -222,7 +222,7 @@ main(int argc, char *argv[]) (unsigned char *) &pid, 1); } #endif - + XtAppMainLoop (app_con); exit(0); } |