summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/ProcessUNIX.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-01-22 19:44:44 (GMT)
committerBrad King <brad.king@kitware.com>2004-01-22 19:44:44 (GMT)
commit9651c9d99697abcd80bcce51138dbbc8760ad9e0 (patch)
tree9fe99ac65a4fa2d490d0d536aeb51f8164e25921 /Source/kwsys/ProcessUNIX.c
parent9cf5bb4bb0686d687e98b6a0e3f88ca8e0096aad (diff)
downloadCMake-9651c9d99697abcd80bcce51138dbbc8760ad9e0.zip
CMake-9651c9d99697abcd80bcce51138dbbc8760ad9e0.tar.gz
CMake-9651c9d99697abcd80bcce51138dbbc8760ad9e0.tar.bz2
ERR: Fixed function prototypes with zero arguments to be C-style.
Diffstat (limited to 'Source/kwsys/ProcessUNIX.c')
-rw-r--r--Source/kwsys/ProcessUNIX.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c
index 23d0edc..2a85696 100644
--- a/Source/kwsys/ProcessUNIX.c
+++ b/Source/kwsys/ProcessUNIX.c
@@ -89,7 +89,7 @@ static int kwsysProcessGetTimeoutTime(kwsysProcess* cp, double* userTimeout,
kwsysProcessTime* timeoutTime);
static int kwsysProcessGetTimeoutLeft(kwsysProcessTime* timeoutTime,
kwsysProcessTime* timeoutLength);
-static kwsysProcessTime kwsysProcessTimeGetCurrent();
+static kwsysProcessTime kwsysProcessTimeGetCurrent(void);
static double kwsysProcessTimeToDouble(kwsysProcessTime t);
static kwsysProcessTime kwsysProcessTimeFromDouble(double d);
static int kwsysProcessTimeLess(kwsysProcessTime in1, kwsysProcessTime in2);
@@ -97,7 +97,7 @@ static kwsysProcessTime kwsysProcessTimeAdd(kwsysProcessTime in1, kwsysProcessTi
static kwsysProcessTime kwsysProcessTimeSubtract(kwsysProcessTime in1, kwsysProcessTime in2);
static void kwsysProcessSetExitException(kwsysProcess* cp, int sig);
static void kwsysProcessChildErrorExit(int errorPipe);
-static void kwsysProcessRestoreDefaultSignalHandlers();
+static void kwsysProcessRestoreDefaultSignalHandlers(void);
/*--------------------------------------------------------------------------*/
/* Structure containing data used to implement the child's execution. */
@@ -184,7 +184,7 @@ struct kwsysProcess_s
};
/*--------------------------------------------------------------------------*/
-kwsysProcess* kwsysProcess_New()
+kwsysProcess* kwsysProcess_New(void)
{
/* Allocate a process control structure. */
kwsysProcess* cp = (kwsysProcess*)malloc(sizeof(kwsysProcess));
@@ -1407,7 +1407,7 @@ static int kwsysProcessGetTimeoutLeft(kwsysProcessTime* timeoutTime,
}
/*--------------------------------------------------------------------------*/
-static kwsysProcessTime kwsysProcessTimeGetCurrent()
+static kwsysProcessTime kwsysProcessTimeGetCurrent(void)
{
kwsysProcessTime current;
gettimeofday(&current, 0);
@@ -1609,7 +1609,7 @@ static void kwsysProcessChildErrorExit(int errorPipe)
/*--------------------------------------------------------------------------*/
/* Restores all signal handlers to their default values. */
-static void kwsysProcessRestoreDefaultSignalHandlers()
+static void kwsysProcessRestoreDefaultSignalHandlers(void)
{
struct sigaction act;
memset(&act, 0, sizeof(struct sigaction));