[PATCH libXaw3d 14/21] MenuButton: Fix old-style function definitions
Yaakov (Cygwin/X)
yselkowitz at users.sourceforge.net
Thu Aug 25 22:38:16 PDT 2011
From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
---
src/MenuButton.c | 13 +++++--------
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;
--
1.7.5.1
More information about the xorg-devel
mailing list