From 05ff62caaff79c2465eb4338c43e030bf8c2e95d Mon Sep 17 00:00:00 2001 From: "Carlos R. Mafra" Date: Sun, 18 May 2014 01:10:06 +0100 Subject: [PATCH] Coding style: Change 'foo * bar' to 'foo *bar' in function arguments Since 'foo' and 'bar' are not being multiplied... Done automatically with the sed script: /^[a-zA-Z][a-zA-Z]*.*(/{ s/ \* \([a-zA-Z]\)/ *\1/g } Signed-off-by: Carlos R. Mafra --- src/icon.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/icon.c b/src/icon.c index d297cbc5..b5bb3089 100644 --- a/src/icon.c +++ b/src/icon.c @@ -54,9 +54,9 @@ #define CACHE_ICON_PATH "/Library/WindowMaker/CachedPixmaps" #define ICON_BORDER 3 -static void miniwindowExpose(WObjDescriptor * desc, XEvent * event); -static void miniwindowMouseDown(WObjDescriptor * desc, XEvent * event); -static void miniwindowDblClick(WObjDescriptor * desc, XEvent * event); +static void miniwindowExpose(WObjDescriptor *desc, XEvent *event); +static void miniwindowMouseDown(WObjDescriptor *desc, XEvent *event); +static void miniwindowDblClick(WObjDescriptor *desc, XEvent *event); static WIcon *icon_create_core(WScreen *scr, int coord_x, int coord_y); @@ -199,7 +199,7 @@ static WIcon *icon_create_core(WScreen *scr, int coord_x, int coord_y) return icon; } -void wIconDestroy(WIcon * icon) +void wIconDestroy(WIcon *icon) { WCoreWindow *core = icon->core; WScreen *scr = core->screen_ptr; @@ -463,7 +463,7 @@ static RImage *get_wwindow_image_from_wmhints(WWindow *wwin, WIcon *icon) * Side effects: * New directories might be created. */ -char *wIconStore(WIcon * icon) +char *wIconStore(WIcon *icon) { char *path, *dir_path, *file; int len = 0; @@ -537,7 +537,7 @@ void wIconSetHighlited(WIcon *icon, Bool flag) update_icon_pixmap(icon); } -void wIconSelect(WIcon * icon) +void wIconSelect(WIcon *icon) { WScreen *scr = icon->core->screen_ptr; icon->selected = !icon->selected; @@ -785,7 +785,7 @@ void wIconPaint(WIcon *icon) /******************************************************************/ -static void miniwindowExpose(WObjDescriptor * desc, XEvent * event) +static void miniwindowExpose(WObjDescriptor *desc, XEvent *event) { /* Parameter not used, but tell the compiler that it is ok */ (void) event; @@ -793,7 +793,7 @@ static void miniwindowExpose(WObjDescriptor * desc, XEvent * event) wIconPaint(desc->parent); } -static void miniwindowDblClick(WObjDescriptor * desc, XEvent * event) +static void miniwindowDblClick(WObjDescriptor *desc, XEvent *event) { WIcon *icon = desc->parent; @@ -805,7 +805,7 @@ static void miniwindowDblClick(WObjDescriptor * desc, XEvent * event) wDeiconifyWindow(icon->owner); } -static void miniwindowMouseDown(WObjDescriptor * desc, XEvent * event) +static void miniwindowMouseDown(WObjDescriptor *desc, XEvent *event) { WIcon *icon = desc->parent; WWindow *wwin = icon->owner;