diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2005-02-21 21:08:27 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2005-02-21 21:08:27 +0000 |
commit | 85eb751e4e1683af6cee3ee9dce29f74911a639d (patch) | |
tree | b40f699ee646462a8f223b919ba68dda1d8fc371 /src/SetWMCW.c | |
parent | 94150cb72d9d641c64325cd70323d93b9a3701a5 (diff) |
Convert lib/Xt to ANSI C (Thomas Dickey). Fixes for a few valgrind warningsXORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_1
(Thomas Dickey).
Diffstat (limited to 'src/SetWMCW.c')
-rw-r--r-- | src/SetWMCW.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/SetWMCW.c b/src/SetWMCW.c index 56ba936..44b0103 100644 --- a/src/SetWMCW.c +++ b/src/SetWMCW.c @@ -60,9 +60,10 @@ in this Software without prior written authorization from The Open Group. */ void -XtSetWMColormapWindows(widget, list, count) -Widget widget, *list; -Cardinal count; +XtSetWMColormapWindows( + Widget widget, + Widget *list, + Cardinal count) { Window *data; Widget *checked, *top, *temp, hookobj; @@ -81,7 +82,7 @@ Cardinal count; /* - * The specification calls for only adding the windows that have unique + * The specification calls for only adding the windows that have unique * colormaps to the property to this function, so we will make a pass through * the widget list removing all the widgets with non-unique colormaps. * @@ -90,7 +91,7 @@ Cardinal count; for (checked_count = 0, i = 0; i < count; i++) { if (!XtIsRealized(list[i])) continue; - + *checked = list[i]; match = FALSE; @@ -99,7 +100,7 @@ Cardinal count; * to check it against. */ - if (checked != top) + if (checked != top) for (j = 0, temp = top; j < checked_count ; j++, temp++) if ( (*temp)->core.colormap == (*checked)->core.colormap) { match = TRUE; @@ -129,7 +130,7 @@ Cardinal count; xa_wm_colormap_windows = XInternAtom(XtDisplay(widget), "WM_COLORMAP_WINDOWS", FALSE); - XChangeProperty(XtDisplay(widget), XtWindow(widget), + XChangeProperty(XtDisplay(widget), XtWindow(widget), xa_wm_colormap_windows, XA_WINDOW, 32, PropModeReplace, (unsigned char *) data, (int) i); @@ -141,8 +142,8 @@ Cardinal count; call_data.widget = widget; call_data.event_data = (XtPointer) list; call_data.num_event_data = count; - XtCallCallbackList(hookobj, - ((HookObject)hookobj)->hooks.changehook_callbacks, + XtCallCallbackList(hookobj, + ((HookObject)hookobj)->hooks.changehook_callbacks, (XtPointer)&call_data); } |