Hi,
attached patch converts some function declarations from () to (void) and
changes one k&r-style function declaration to ansi C.
Regards,
Stefan
Index: fvwm/ewmh.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/fvwm/ewmh.c,v
retrieving revision 1.73
diff -u -u -r1.73 ewmh.c
--- fvwm/ewmh.c 27 Jan 2007 11:33:15 -0000 1.73
+++ fvwm/ewmh.c 27 May 2007 16:48:37 -0000
@@ -844,7 +844,7 @@
/**** Client lists ****/
-void EWMH_SetClientList()
+void EWMH_SetClientList(void)
{
Window *wl = NULL;
FvwmWindow *fw;
@@ -874,7 +874,7 @@
return;
}
-void EWMH_SetClientListStacking()
+void EWMH_SetClientListStacking(void)
{
Window *wl = NULL;
FvwmWindow *fw;
Index: libs/FlocaleCharset.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/libs/FlocaleCharset.c,v
retrieving revision 1.23
diff -u -u -r1.23 FlocaleCharset.c
--- libs/FlocaleCharset.c 27 Jan 2007 11:33:16 -0000 1.23
+++ libs/FlocaleCharset.c 27 May 2007 16:48:38 -0000
@@ -834,7 +834,7 @@
#endif
}
-void FlocaleCharsetPrintXOMInfo()
+void FlocaleCharsetPrintXOMInfo(void)
{
#ifdef HAVE_XOUTPUT_METHOD
int i;
Index: libs/PictureBase.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/libs/PictureBase.c,v
retrieving revision 1.14
diff -u -u -r1.14 PictureBase.c
--- libs/PictureBase.c 17 Mar 2007 21:01:14 -0000 1.14
+++ libs/PictureBase.c 27 May 2007 16:48:38 -0000
@@ -232,7 +232,7 @@
return;
}
-char* PictureGetImagePath()
+char* PictureGetImagePath(void)
{
return imagePath;
}
Index: modules/FvwmBacker/FvwmBacker.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmBacker/FvwmBacker.c,v
retrieving revision 1.52
diff -u -u -r1.52 FvwmBacker.c
--- modules/FvwmBacker/FvwmBacker.c 27 Jan 2007 11:57:07 -0000 1.52
+++ modules/FvwmBacker/FvwmBacker.c 27 May 2007 16:48:38 -0000
@@ -561,7 +561,7 @@
/*
ParseConfig - Parse the configuration file fvwm to us to use
*/
-void ParseConfig()
+void ParseConfig(void)
{
char *line_start;
char *tline;
Index: modules/FvwmButtons/FvwmButtons.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmButtons/FvwmButtons.c,v
retrieving revision 1.204
diff -u -u -r1.204 FvwmButtons.c
--- modules/FvwmButtons/FvwmButtons.c 28 Jan 2007 15:38:40 -0000 1.204
+++ modules/FvwmButtons/FvwmButtons.c 27 May 2007 16:48:42 -0000
@@ -948,9 +948,7 @@
return b;
}
-void ButtonPressProcess (b, act)
- button_info *b;
- char **act;
+void ButtonPressProcess (button_info *b, char **act)
{
FlocaleNameString tmp;
int i,i2;
Index: modules/FvwmCommand/FvwmCommand.h
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmCommand/FvwmCommand.h,v
retrieving revision 1.20
diff -u -u -r1.20 FvwmCommand.h
--- modules/FvwmCommand/FvwmCommand.h 28 Jan 2007 15:40:40 -0000 1.20
+++ modules/FvwmCommand/FvwmCommand.h 27 May 2007 16:48:42 -0000
@@ -35,4 +35,4 @@
#endif
-char * fifos_get_default_name();
+char * fifos_get_default_name(void);
Index: modules/FvwmCommand/fifos.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmCommand/fifos.c,v
retrieving revision 1.5
diff -u -u -r1.5 fifos.c
--- modules/FvwmCommand/fifos.c 13 Jul 2006 07:07:15 -0000 1.5
+++ modules/FvwmCommand/fifos.c 27 May 2007 16:48:42 -0000
@@ -29,7 +29,7 @@
#define MAXHOSTNAME 32
-char * fifos_get_default_name()
+char * fifos_get_default_name(void)
{
char file_suffix[] = { 'R', 'C', 'M', '\0' };
char *f_stem;
Index: modules/FvwmDragWell/fvwmDragWell.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmDragWell/fvwmDragWell.c,v
retrieving revision 1.31
diff -u -u -r1.31 fvwmDragWell.c
--- modules/FvwmDragWell/fvwmDragWell.c 27 Jan 2007 11:57:07 -0000 1.31
+++ modules/FvwmDragWell/fvwmDragWell.c 27 May 2007 16:48:42 -0000
@@ -240,7 +240,7 @@
/* Main event loop*/
-void veryLongLoop()
+void veryLongLoop(void)
{
int x,y;
XEvent xev;
@@ -510,7 +510,7 @@
/*getReliefColors - sets up the colors for the dragwell
*Arguments:*/
-void getReliefColors() {
+void getReliefColors(void) {
if(xg.dpyDepth < 2) {
/*for mono display, not well implemented...*/
xg.fore = GetColor("white");
@@ -534,7 +534,7 @@
/* createBackground - sets the background of the dragwell window
* Arguments:*/
-void createBackground() {
+void createBackground(void) {
unsigned long gcm;
XGCValues gcv;
/*Graphic context stuff*/
@@ -878,7 +878,7 @@
/*createWindow - creates the drag window.
* Arguments:*/
-void createWindow()
+void createWindow(void)
{
unsigned long valuemask;
XSetWindowAttributes attributes;
Index: modules/FvwmForm/FvwmForm.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmForm/FvwmForm.c,v
retrieving revision 1.120
diff -u -u -r1.120 FvwmForm.c
--- modules/FvwmForm/FvwmForm.c 28 Jan 2007 15:38:40 -0000 1.120
+++ modules/FvwmForm/FvwmForm.c 27 May 2007 16:48:44 -0000
@@ -803,7 +803,7 @@
}
/* input/output is global "item" - currently allocated last item */
-static void AddItem()
+static void AddItem(void)
{
Item *save_item;
save_item = (Item *)item; /* save current item */
@@ -1008,7 +1008,7 @@
/* Cant do the actual reading of the data file here,
we are already in a readconfig loop. */
}
-static void ReadFormData()
+static void ReadFormData(void)
{
int leading_len;
char *line_buf; /* ptr to curr config line */
Index: modules/FvwmForm/ReadXServer.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmForm/ReadXServer.c,v
retrieving revision 1.46
diff -u -u -r1.46 ReadXServer.c
--- modules/FvwmForm/ReadXServer.c 29 Aug 2006 13:02:28 -0000 1.46
+++ modules/FvwmForm/ReadXServer.c 27 May 2007 16:48:44 -0000
@@ -65,7 +65,7 @@
static void ResizeFrame (void);
/* read an X event */
-void ReadXServer ()
+void ReadXServer (void)
{
static XEvent event;
int old_cursor = 0, keypress;
Index: modules/FvwmIconMan/readconfig.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmIconMan/readconfig.c,v
retrieving revision 1.66
diff -u -u -r1.66 readconfig.c
--- modules/FvwmIconMan/readconfig.c 28 Jan 2007 15:29:26 -0000 1.66
+++ modules/FvwmIconMan/readconfig.c 27 May 2007 16:48:46 -0000
@@ -1182,7 +1182,7 @@
++man->weighted_sorts_len;
}
-void read_in_resources()
+void read_in_resources(void)
{
char *p, *q;
int i, n, manager;
Index: modules/FvwmPager/FvwmPager.h
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmPager/FvwmPager.h,v
retrieving revision 1.48
diff -u -u -r1.48 FvwmPager.h
--- modules/FvwmPager/FvwmPager.h 6 Jan 2007 12:01:41 -0000 1.48
+++ modules/FvwmPager/FvwmPager.h 27 May 2007 16:48:51 -0000
@@ -205,4 +205,4 @@
void MapBalloonWindow(PagerWindow *t, Bool is_icon_view);
void UnmapBalloonWindow(void);
void DrawInBalloonWindow(int i);
-void HandleScrollDone();
+void HandleScrollDone(void);
Index: modules/FvwmPager/x_pager.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmPager/x_pager.c,v
retrieving revision 1.194
diff -u -u -r1.194 x_pager.c
--- modules/FvwmPager/x_pager.c 28 Jan 2007 15:38:40 -0000 1.194
+++ modules/FvwmPager/x_pager.c 27 May 2007 16:48:51 -0000
@@ -174,7 +174,7 @@
}
}
-void HandleScrollDone()
+void HandleScrollDone(void)
{
do_scroll(0, 0, True, True);
}
@@ -3299,7 +3299,7 @@
/* -- [EMAIL PROTECTED] */
-void UnmapBalloonWindow ()
+void UnmapBalloonWindow (void)
{
XUnmapWindow(dpy, Scr.balloon_w);
BalloonView = None;
Index: modules/FvwmTaskBar/FvwmTaskBar.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmTaskBar/FvwmTaskBar.c,v
retrieving revision 1.139
diff -u -u -r1.139 FvwmTaskBar.c
--- modules/FvwmTaskBar/FvwmTaskBar.c 27 Jan 2007 11:57:08 -0000 1.139
+++ modules/FvwmTaskBar/FvwmTaskBar.c 27 May 2007 16:48:51 -0000
@@ -916,7 +916,7 @@
RedrawWindow(redraw, NULL);
}
-void redraw_buttons()
+void redraw_buttons(void)
{
Item *item;
@@ -2437,7 +2437,7 @@
/*
RevealTaskBar -- Make taskbar fully visible
*/
-void RevealTaskBar()
+void RevealTaskBar(void)
{
int new_win_y;
int inc_y = 2;
@@ -2476,7 +2476,7 @@
/*
HideTaskbar -- Make taskbar partially visible
*/
-void HideTaskBar()
+void HideTaskBar(void)
{
int new_win_y;
int inc_y = 1;
Index: modules/FvwmTaskBar/Goodies.c
===================================================================
RCS file: /home/cvs/fvwm/fvwm/modules/FvwmTaskBar/Goodies.c,v
retrieving revision 1.56
diff -u -u -r1.56 Goodies.c
--- modules/FvwmTaskBar/Goodies.c 27 Jan 2007 11:33:17 -0000 1.56
+++ modules/FvwmTaskBar/Goodies.c 27 May 2007 16:48:51 -0000
@@ -519,7 +519,7 @@
PopupTipWindow(win_width, 0, str);
}
-void CreateMailTipWindow()
+void CreateMailTipWindow(void)
{
const char *str;
@@ -719,7 +719,7 @@
XFreePixmap(dpy, pchk);
}
-void DestroyTipWindow()
+void DestroyTipWindow(void)
{
XFreePixmap(dpy, pmask);
XFreePixmap(dpy, pclip);
@@ -878,7 +878,7 @@
free(newlist);
}
-void cool_get_inboxstatus()
+void cool_get_inboxstatus(void)
{
if (using_MailDir)
{