Commit 49ea30a7 authored by Brad King's avatar Brad King
Browse files

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

parent 86fb6feb
...@@ -81,7 +81,7 @@ typedef struct kwsysProcess_s kwsysProcess; ...@@ -81,7 +81,7 @@ typedef struct kwsysProcess_s kwsysProcess;
/** /**
* Create a new Process instance. * Create a new Process instance.
*/ */
kwsysEXPORT kwsysProcess* kwsysProcess_New(); kwsysEXPORT kwsysProcess* kwsysProcess_New(void);
/** /**
* Delete an existing Process instance. If the instance is currently * Delete an existing Process instance. If the instance is currently
......
...@@ -89,7 +89,7 @@ static int kwsysProcessGetTimeoutTime(kwsysProcess* cp, double* userTimeout, ...@@ -89,7 +89,7 @@ static int kwsysProcessGetTimeoutTime(kwsysProcess* cp, double* userTimeout,
kwsysProcessTime* timeoutTime); kwsysProcessTime* timeoutTime);
static int kwsysProcessGetTimeoutLeft(kwsysProcessTime* timeoutTime, static int kwsysProcessGetTimeoutLeft(kwsysProcessTime* timeoutTime,
kwsysProcessTime* timeoutLength); kwsysProcessTime* timeoutLength);
static kwsysProcessTime kwsysProcessTimeGetCurrent(); static kwsysProcessTime kwsysProcessTimeGetCurrent(void);
static double kwsysProcessTimeToDouble(kwsysProcessTime t); static double kwsysProcessTimeToDouble(kwsysProcessTime t);
static kwsysProcessTime kwsysProcessTimeFromDouble(double d); static kwsysProcessTime kwsysProcessTimeFromDouble(double d);
static int kwsysProcessTimeLess(kwsysProcessTime in1, kwsysProcessTime in2); static int kwsysProcessTimeLess(kwsysProcessTime in1, kwsysProcessTime in2);
...@@ -97,7 +97,7 @@ static kwsysProcessTime kwsysProcessTimeAdd(kwsysProcessTime in1, kwsysProcessTi ...@@ -97,7 +97,7 @@ static kwsysProcessTime kwsysProcessTimeAdd(kwsysProcessTime in1, kwsysProcessTi
static kwsysProcessTime kwsysProcessTimeSubtract(kwsysProcessTime in1, kwsysProcessTime in2); static kwsysProcessTime kwsysProcessTimeSubtract(kwsysProcessTime in1, kwsysProcessTime in2);
static void kwsysProcessSetExitException(kwsysProcess* cp, int sig); static void kwsysProcessSetExitException(kwsysProcess* cp, int sig);
static void kwsysProcessChildErrorExit(int errorPipe); static void kwsysProcessChildErrorExit(int errorPipe);
static void kwsysProcessRestoreDefaultSignalHandlers(); static void kwsysProcessRestoreDefaultSignalHandlers(void);
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
/* Structure containing data used to implement the child's execution. */ /* Structure containing data used to implement the child's execution. */
...@@ -184,7 +184,7 @@ struct kwsysProcess_s ...@@ -184,7 +184,7 @@ struct kwsysProcess_s
}; };
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
kwsysProcess* kwsysProcess_New() kwsysProcess* kwsysProcess_New(void)
{ {
/* Allocate a process control structure. */ /* Allocate a process control structure. */
kwsysProcess* cp = (kwsysProcess*)malloc(sizeof(kwsysProcess)); kwsysProcess* cp = (kwsysProcess*)malloc(sizeof(kwsysProcess));
...@@ -1407,7 +1407,7 @@ static int kwsysProcessGetTimeoutLeft(kwsysProcessTime* timeoutTime, ...@@ -1407,7 +1407,7 @@ static int kwsysProcessGetTimeoutLeft(kwsysProcessTime* timeoutTime,
} }
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
static kwsysProcessTime kwsysProcessTimeGetCurrent() static kwsysProcessTime kwsysProcessTimeGetCurrent(void)
{ {
kwsysProcessTime current; kwsysProcessTime current;
gettimeofday(&current, 0); gettimeofday(&current, 0);
...@@ -1609,7 +1609,7 @@ static void kwsysProcessChildErrorExit(int errorPipe) ...@@ -1609,7 +1609,7 @@ static void kwsysProcessChildErrorExit(int errorPipe)
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
/* Restores all signal handlers to their default values. */ /* Restores all signal handlers to their default values. */
static void kwsysProcessRestoreDefaultSignalHandlers() static void kwsysProcessRestoreDefaultSignalHandlers(void)
{ {
struct sigaction act; struct sigaction act;
memset(&act, 0, sizeof(struct sigaction)); 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