On Wed, Sep 13, 2006 at 11:47:33AM +0200, Stefan Huehner wrote:
> Hi,
> 
> attached patch converts all functions declarations without parameters in
> src/ from () to the ansi c (void) form.
> 

attached patch converts some more functions, which have been missed on
the previous patch.

Regards,
Stefan

diff -u src/multijoin.c src/multijoin.c
--- src/multijoin.c     (working copy)
+++ src/multijoin.c     (working copy)
@@ -72,7 +72,7 @@
 // ////////////////////////////////////////////////////////////////////////////
 // Version Check
 
-BOOL sendVersionCheck()
+BOOL sendVersionCheck(void)
 {
        NETMSG msg;
 
diff -u src/multiint.c src/multiint.c
--- src/multiint.c      (working copy)
+++ src/multiint.c      (working copy)
@@ -771,7 +771,7 @@
 // ////////////////////////////////////////////////////////////////////////////
 // Game Chooser Screen.
 
-static void addGames()
+static void addGames(void)
 {
        UDWORD i,gcount=0;
        W_BUTINIT       sButInit;
@@ -1566,7 +1566,7 @@
 }
 
 //////////////////////////////////////////////////////////////////////////////
-static void SendFireUp()
+static void SendFireUp(void)
 {
        NETMSG m;
 
@@ -3263,7 +3263,7 @@
 
 
 // removewhiteboard
-BOOL removeWhiteBoard()
+static BOOL removeWhiteBoard(void)
 {
        bWhiteBoardUp = FALSE;
        widgReleaseScreen(psWhiteScreen);
@@ -3272,7 +3272,7 @@
 
 
 // runwhiteboard
-BOOL runWhiteBoard()
+static BOOL runWhiteBoard(void)
 {
        NETMSG m;
        static UDWORD lastSent=0;
@@ -3414,7 +3414,7 @@
 }
 
 // add whiteboard
-BOOL addWhiteBoard()
+static BOOL addWhiteBoard(void)
 {
        W_FORMINIT              sFormInit;
 
diff -u src/mission.c src/mission.c
--- src/mission.c       (working copy)
+++ src/mission.c       (working copy)
@@ -3541,7 +3541,7 @@
 }
 
 
-void intRunMissionResult()
+void intRunMissionResult(void)
 {
 
        processFrontendSnap(FALSE);
--- src/scriptfuncs.c   (revision 345)
+++ src/scriptfuncs.c   (working copy)
@@ -2786,7 +2786,7 @@
 
 // 
-----------------------------------------------------------------------------------------
 // multiplayer limit handler.
-BOOL scrApplyLimitSet()
+BOOL scrApplyLimitSet(void)
 {
        applyLimitSet();
        return TRUE;
--- src/visibility.c    (revision 345)
+++ src/visibility.c    (working copy)
@@ -1212,7 +1212,7 @@
 
 BOOL bDisplaySensorRange;
 
-void startSensorDisplay()
+void startSensorDisplay(void)
 {
        MAPTILE         *psTile;
        UDWORD          x;
@@ -1258,7 +1258,7 @@
        bDisplaySensorRange = TRUE;
 }
 
-void stopSensorDisplay()
+void stopSensorDisplay(void)
 {
        // set the display flag off.
        bDisplaySensorRange = FALSE;
--- src/multiopt.c      (revision 345)
+++ src/multiopt.c      (working copy)
@@ -630,7 +630,7 @@
 
 // ////////////////////////////////////////////////////////////////////////////
 // setup templates
-BOOL multiTemplateSetup()
+BOOL multiTemplateSetup(void)
 {
        UDWORD player, pcPlayer = 0;
        CHAR                    sTemp[256];
@@ -944,7 +944,7 @@
 */
 // ////////////////////////////////////////////////////////////////////////////
 // setup a campaign game
-static BOOL campInit()
+static BOOL campInit(void)
 {
        UDWORD                  player;
        UBYTE           newPlayerArray[MAX_PLAYERS];
--- src/keybind.c       (revision 345)
+++ src/keybind.c       (working copy)
@@ -992,7 +992,7 @@
 // --------------------------------------------------------------------------
 
 #define DEFINE_NUMED_KF(x) \
-       void    kf_SelectGrouping_##x( ) { \
+       void    kf_SelectGrouping_##x( void ) { \
                kf_SelectGrouping(x); \
        } \
        void    kf_AssignGrouping_##x( void ) { \
--- src/configuration.c (revision 345)
+++ src/configuration.c (working copy)
@@ -475,7 +475,7 @@
        return closeWarzoneKey();
 }
 
-BOOL loadRenderMode()
+BOOL loadRenderMode(void)
 {
        char str[32];
        DWORD val;
@@ -500,7 +500,7 @@
 }
 
 // ////////////////////////////////////////////////////////////////////////////
-BOOL saveConfig()
+BOOL saveConfig(void)
 {
 
        debug( LOG_WZ, "Writing prefs to registry\n" );
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to