summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-25 22:27:14 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-26 17:31:53 -0500
commit9f422929b2b0a11839ecfd69bf2a336cfb09214d (patch)
tree9ecf81a3a7342d4e0e3b8789430f877e875714ff
parent7547738871123651b30effdf6237922d5d37ad9b (diff)
MenuButton: Fix old-style function definitions
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Acked-by: Gaetan Nadon <memsize@videotron.ca>
-rw-r--r--src/MenuButton.c13
1 files 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 <X11/Xaw3d/XawInit.h>
#include <X11/Xaw3d/MenuButtoP.h>
-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;