summaryrefslogtreecommitdiff
path: root/svpopup.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 /svpopup.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 'svpopup.c')
-rw-r--r--svpopup.c25
1 files changed, 6 insertions, 19 deletions
diff --git a/svpopup.c b/svpopup.c
index 8affe88..f949f5e 100644
--- a/svpopup.c
+++ b/svpopup.c
@@ -61,9 +61,7 @@ static void CancelSetValues ( Widget w, XtPointer junk, XtPointer garbage );
/* ARGSUSED */
void
-PopupSetValues(parent, event)
-Widget parent;
-XEvent * event;
+PopupSetValues(Widget parent, XEvent *event)
{
Arg args[1];
@@ -107,11 +105,7 @@ XEvent * event;
/* ARGSUSED */
void
-ModifySVEntry(w, event, params, num_params)
-Widget w;
-XEvent *event;
-String * params;
-Cardinal * num_params;
+ModifySVEntry(Widget w, XEvent *event, String *params, Cardinal *num_params)
{
Widget new, old;
char msg[BUFSIZ];
@@ -156,8 +150,7 @@ Cardinal * num_params;
*/
static void
-_SetField(new, old)
-Widget new, old;
+_SetField(Widget new, Widget old)
{
Arg args[2];
Pixel new_border, old_border, old_bg;
@@ -199,9 +192,7 @@ Widget new, old;
*/
static void
-CreateSetValuesPopup(parent, scr_data)
-Widget parent;
-ScreenData * scr_data;
+CreateSetValuesPopup(Widget parent, ScreenData *scr_data)
{
Widget form, cancel, do_it, label;
Widget res_label;
@@ -286,9 +277,7 @@ ScreenData * scr_data;
/* ARGSUSED */
static void
-DoSetValues(w, junk, garbage)
-Widget w;
-XtPointer junk, garbage;
+DoSetValues(Widget w, XtPointer junk, XtPointer garbage)
{
ProtocolStream * stream = &(global_client.stream);
char *res_name, *res_value;
@@ -328,9 +317,7 @@ XtPointer junk, garbage;
/* ARGSUSED */
static void
-CancelSetValues(w, junk, garbage)
-Widget w;
-XtPointer junk, garbage;
+CancelSetValues(Widget w, XtPointer junk, XtPointer garbage)
{
XtPopdown(XtParent(XtParent(w)));
}