libDtSvc: Change to ANSI function definitions

This commit is contained in:
Peter Howkins
2018-06-28 03:58:49 +01:00
parent a5fa1313c4
commit ba513278b9
10 changed files with 17 additions and 17 deletions

View File

@@ -989,7 +989,7 @@ _DtExecuteAccess( const char *path )
* Allocate an unused DtActionInvocationID
* between 1..INT_MAX
*/
DtActionInvocationID _DtActAllocID()
DtActionInvocationID _DtActAllocID(void)
{
extern _DtActInvRecT **_DtActInvRecArray; /* global */
extern int _actInvRecArraySize; /* global */
@@ -1030,7 +1030,7 @@ DtActionInvocationID _DtActAllocID()
*
* Allocate an Invocation Record
*/
_DtActInvRecT *_DtActAllocInvRec()
_DtActInvRecT *_DtActAllocInvRec(void)
{
extern _DtActInvRecT **_DtActInvRecArray; /* global */
extern int _actInvRecArraySize; /* global */

View File

@@ -468,7 +468,7 @@ _DtDndArgListFromVarArgs(
* Returns the network node/host name.
*/
String
_DtDndGetHostName()
_DtDndGetHostName(void)
{
static char *nodename;

View File

@@ -742,7 +742,7 @@ get_buff_size(type_info_t *info)
return(info->buff_size);
}
static DtDtsMMDatabase *
get_dc_db()
get_dc_db(void)
{
DtDtsMMDatabase *dc_db = 0;
@@ -782,7 +782,7 @@ _DtDtsMMPrint(stdout);
}
static DtDtsMMDatabase *
get_da_db()
get_da_db(void)
{
DtDtsMMDatabase *da_db = 0;
if(!da_db)

View File

@@ -181,7 +181,7 @@ _DtDtsDbInit(void)
}
char **
_DtsDbListDb()
_DtsDbListDb(void)
{
int i;
char **list = 0;

View File

@@ -82,7 +82,7 @@ static int cur_da_count = 0;
#define _DtFT_NUM_FIELDS 20
int
_DtDtsNextDCSeq()
_DtDtsNextDCSeq(void)
{
int nextDCSeq;
@@ -94,7 +94,7 @@ _DtDtsNextDCSeq()
}
int
_DtDtsNextDASeq()
_DtDtsNextDASeq(void)
{
int nextDASeq;
@@ -106,7 +106,7 @@ _DtDtsNextDASeq()
}
void
_DtDtsSeqReset()
_DtDtsSeqReset(void)
{
_DtSvcProcessLock();
cur_dc_count = 0;

View File

@@ -362,7 +362,7 @@ _DtDtsMMInit(int override)
}
char **
_DtsMMListDb()
_DtsMMListDb(void)
{
int i;
char **list;
@@ -717,7 +717,7 @@ _DtDtsMMIsMemory(const char *value)
}
int
_DtDtsMMUnLoad()
_DtDtsMMUnLoad(void)
{
int error = 0;