Commit d149445d authored by Brad King's avatar Brad King

ERR: Fixed function prototypes with zero arguments to be C-style.

parent 2af61e0d
......@@ -81,7 +81,7 @@ typedef struct kwsysProcess_s kwsysProcess;
/**
* Create a new Process instance.
*/
kwsysEXPORT kwsysProcess* kwsysProcess_New();
kwsysEXPORT kwsysProcess* kwsysProcess_New(void);
/**
* Delete an existing Process instance. If the instance is currently
......
......@@ -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));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment