summaryrefslogtreecommitdiff
path: root/actions.c
diff options
context:
space:
mode:
authorPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-12 17:32:36 -0200
committerPaulo Cesar Pereira de Andrade <pcpa@mandriva.com.br>2009-01-12 17:32:36 -0200
commitb86d1b71813cfa582aa28356ee6a2196a67ba8d4 (patch)
tree95aa0a4af36e5736d93814d29709e09bfaf8e7b1 /actions.c
parent82c17cd232a016f0c552f38453774abfb0bf17fe (diff)
Ansification and compile warning fixes.
This also uses XORG_CHANGELOG and XORG_CWARNFLAGS, corrects make distcheck and all gcc 4.3 and sparse warnings.
Diffstat (limited to 'actions.c')
-rw-r--r--actions.c44
1 files changed, 10 insertions, 34 deletions
diff --git a/actions.c b/actions.c
index a6764e0..a3d1820 100644
--- a/actions.c
+++ b/actions.c
@@ -93,11 +93,7 @@ Boolean do_get_values = False;
/* ARGSUSED */
static void
-EnableGetVal(w, event, params, num_params)
-Widget w;
-XEvent * event;
-String * params;
-Cardinal * num_params;
+EnableGetVal(Widget w, XEvent *event, String *params, Cardinal *num_params)
{
do_get_values = True;
}
@@ -116,11 +112,7 @@ Cardinal * num_params;
/* ARGSUSED */
static void
-SelectAction(w, event, params, num_params)
-Widget w;
-XEvent * event;
-String * params;
-Cardinal * num_params;
+SelectAction(Widget w, XEvent *event, String *params, Cardinal *num_params)
{
WNode * node;
int type;
@@ -161,11 +153,7 @@ Cardinal * num_params;
/* ARGSUSED */
static void
-RelabelAction(w, event, params, num_params)
-Widget w;
-XEvent * event;
-String * params;
-Cardinal * num_params;
+RelabelAction(Widget w, XEvent *event, String *params, Cardinal *num_params)
{
WNode * node;
int type;
@@ -195,11 +183,8 @@ Cardinal * num_params;
/* ARGSUSED */
static void
-PopdownFileDialogAction(w, event, params, num_params)
-Widget w;
-XEvent * event;
-String * params;
-Cardinal * num_params;
+PopdownFileDialogAction(Widget w, XEvent *event,
+ String *params, Cardinal *num_params)
{
char buf[BUFSIZ];
Boolean val;
@@ -239,11 +224,7 @@ Cardinal * num_params;
/* ARGSUSED */
static void
-ActionQuit(w, event, params, num_params)
-Widget w;
-XEvent * event;
-String * params;
-Cardinal * num_params;
+ActionQuit(Widget w, XEvent *event, String *params, Cardinal *num_params)
{
if (w==global_toplevel) {
XtDestroyApplicationContext(XtWidgetToApplicationContext(w));
@@ -273,8 +254,7 @@ static XtActionsRec actions[] = {
};
void
-SetApplicationActions(app_con)
-XtAppContext app_con;
+SetApplicationActions(XtAppContext app_con)
{
XtAppAddActions(app_con, actions, XtNumber(actions));
@@ -299,11 +279,8 @@ XtAppContext app_con;
*/
static Boolean
-CheckAndFindEntry(action_name, params, num_params, table, num_table, type)
-String * params, action_name;
-Cardinal num_params, num_table;
-struct ActionValues * table;
-int * type;
+CheckAndFindEntry(String action_name, String *params, Cardinal num_params,
+ struct ActionValues *table, Cardinal num_table, int *type)
{
char buf[BUFSIZ];
int i;
@@ -345,8 +322,7 @@ int * type;
*/
static WNode *
-FindTreeNodeFromWidget(w)
-Widget w;
+FindTreeNodeFromWidget(Widget w)
{
int ret_val;
XPointer data_return;