From 9f422929b2b0a11839ecfd69bf2a336cfb09214d Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Thu, 25 Aug 2011 22:27:14 -0500 Subject: MenuButton: Fix old-style function definitions Signed-off-by: Yaakov Selkowitz Acked-by: Gaetan Nadon --- src/MenuButton.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/MenuButton.c b/src/MenuButton.c index aa26a7e..ac821b1 100644 --- a/src/MenuButton.c +++ b/src/MenuButton.c @@ -51,8 +51,8 @@ in this Software without prior written authorization from the X Consortium. #include #include -static void ClassInitialize(); -static void PopupMenu(); +static void ClassInitialize(void); +static void PopupMenu(Widget, XEvent *, String *, Cardinal *); #define superclass ((CommandWidgetClass)&commandClassRec) @@ -143,7 +143,8 @@ WidgetClass menuButtonWidgetClass = (WidgetClass) &menuButtonClassRec; * ****************************************************************/ -static void ClassInitialize() +static void +ClassInitialize(void) { XawInitializeWidgetSet(); XtRegisterGrabAction(PopupMenu, True, @@ -153,11 +154,7 @@ static void ClassInitialize() /* ARGSUSED */ static void -PopupMenu(w, event, params, num_params) -Widget w; -XEvent * event; -String * params; -Cardinal * num_params; +PopupMenu(Widget w, XEvent *event, String *params, Cardinal *num_params) { MenuButtonWidget mbw = (MenuButtonWidget) w; Widget menu = NULL, temp; -- cgit v1.2.3