1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

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;

View file

@ -312,7 +312,7 @@ _DtPerfChkpntMsgSend(char *message)
* myDtPerfChkpntEnd --- End the checkpointing message delivery
*/
int
_DtPerfChkpntEnd()
_DtPerfChkpntEnd(void)
{
myDtChkpntMsgSend("End checkpoint delivery", DT_PERF_CHKPNT_MSG_END);
return(1);

View file

@ -1429,7 +1429,7 @@ void _DtEnvMapForRemote (char *targetHost)
* restores the original envirnment settings for a number of
* environment variables.
*/
void _DtEnvRestoreLocal ()
void _DtEnvRestoreLocal (void)
{
extern char *mostRecentRemoteHostG;
cacheForTargetHost *targetCache;

View file

@ -207,7 +207,7 @@ makeDefaultIconPath(
* Construct a default value for XMICONSEARCHPATH into outbuf.
*/
static char *
makeDefaultIconPmPath()
makeDefaultIconPmPath(void)
{
static char *defaultIconPmPath = NULL;
@ -223,7 +223,7 @@ makeDefaultIconPmPath()
* Construct a default value for XMICONBMSEARCHPATH into outbuf.
*/
static char *
makeDefaultIconBmPath()
makeDefaultIconBmPath(void)
{
static char *defaultIconBmPath = NULL;
@ -254,7 +254,7 @@ makeDefaultIconBmPath()
*
*****************************<->***********************************/
void
_DtEnvSessionManager()
_DtEnvSessionManager(void)
{
#define SESSION_MANAGER "SESSION_MANAGER"
char *session_manager = getenv(SESSION_MANAGER);

View file

@ -143,7 +143,7 @@ DtInfoShowTopic (
static DtInfoShowStatus
ConnectToMessageServer ()
ConnectToMessageServer (void)
{
char * procid;
Tt_status status;