From ba513278b92cedb33b30f3f3f581b697d3fd0301 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Thu, 28 Jun 2018 03:58:49 +0100 Subject: [PATCH] libDtSvc: Change to ANSI function definitions --- cde/lib/DtSvc/DtUtil1/ActionUtil.c | 4 ++-- cde/lib/DtSvc/DtUtil1/Dnd.c | 2 +- cde/lib/DtSvc/DtUtil1/Dts.c | 4 ++-- cde/lib/DtSvc/DtUtil1/DtsDb.c | 2 +- cde/lib/DtSvc/DtUtil1/DtsInit.c | 6 +++--- cde/lib/DtSvc/DtUtil1/DtsMM.c | 4 ++-- cde/lib/DtSvc/DtUtil2/ChkpntClient.c | 2 +- cde/lib/DtSvc/DtUtil2/DtEnvMap.c | 2 +- cde/lib/DtSvc/DtUtil2/EnvControl.c | 6 +++--- cde/lib/DtSvc/DtUtil2/Info.c | 2 +- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/cde/lib/DtSvc/DtUtil1/ActionUtil.c b/cde/lib/DtSvc/DtUtil1/ActionUtil.c index d86e004a..239cb9b5 100644 --- a/cde/lib/DtSvc/DtUtil1/ActionUtil.c +++ b/cde/lib/DtSvc/DtUtil1/ActionUtil.c @@ -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 */ diff --git a/cde/lib/DtSvc/DtUtil1/Dnd.c b/cde/lib/DtSvc/DtUtil1/Dnd.c index 826e0dae..b8decc50 100644 --- a/cde/lib/DtSvc/DtUtil1/Dnd.c +++ b/cde/lib/DtSvc/DtUtil1/Dnd.c @@ -468,7 +468,7 @@ _DtDndArgListFromVarArgs( * Returns the network node/host name. */ String -_DtDndGetHostName() +_DtDndGetHostName(void) { static char *nodename; diff --git a/cde/lib/DtSvc/DtUtil1/Dts.c b/cde/lib/DtSvc/DtUtil1/Dts.c index d3a61a7f..846942da 100644 --- a/cde/lib/DtSvc/DtUtil1/Dts.c +++ b/cde/lib/DtSvc/DtUtil1/Dts.c @@ -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) diff --git a/cde/lib/DtSvc/DtUtil1/DtsDb.c b/cde/lib/DtSvc/DtUtil1/DtsDb.c index 1d55cb71..6983f825 100644 --- a/cde/lib/DtSvc/DtUtil1/DtsDb.c +++ b/cde/lib/DtSvc/DtUtil1/DtsDb.c @@ -181,7 +181,7 @@ _DtDtsDbInit(void) } char ** -_DtsDbListDb() +_DtsDbListDb(void) { int i; char **list = 0; diff --git a/cde/lib/DtSvc/DtUtil1/DtsInit.c b/cde/lib/DtSvc/DtUtil1/DtsInit.c index f28fe90f..7d67657f 100644 --- a/cde/lib/DtSvc/DtUtil1/DtsInit.c +++ b/cde/lib/DtSvc/DtUtil1/DtsInit.c @@ -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; diff --git a/cde/lib/DtSvc/DtUtil1/DtsMM.c b/cde/lib/DtSvc/DtUtil1/DtsMM.c index b06244ff..b6530b6a 100644 --- a/cde/lib/DtSvc/DtUtil1/DtsMM.c +++ b/cde/lib/DtSvc/DtUtil1/DtsMM.c @@ -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; diff --git a/cde/lib/DtSvc/DtUtil2/ChkpntClient.c b/cde/lib/DtSvc/DtUtil2/ChkpntClient.c index aa132fda..4b7ebb8e 100644 --- a/cde/lib/DtSvc/DtUtil2/ChkpntClient.c +++ b/cde/lib/DtSvc/DtUtil2/ChkpntClient.c @@ -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); diff --git a/cde/lib/DtSvc/DtUtil2/DtEnvMap.c b/cde/lib/DtSvc/DtUtil2/DtEnvMap.c index 13404acc..b01669be 100644 --- a/cde/lib/DtSvc/DtUtil2/DtEnvMap.c +++ b/cde/lib/DtSvc/DtUtil2/DtEnvMap.c @@ -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; diff --git a/cde/lib/DtSvc/DtUtil2/EnvControl.c b/cde/lib/DtSvc/DtUtil2/EnvControl.c index 13ca8c1e..798ce64c 100644 --- a/cde/lib/DtSvc/DtUtil2/EnvControl.c +++ b/cde/lib/DtSvc/DtUtil2/EnvControl.c @@ -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); diff --git a/cde/lib/DtSvc/DtUtil2/Info.c b/cde/lib/DtSvc/DtUtil2/Info.c index ada065f3..d3b169e8 100644 --- a/cde/lib/DtSvc/DtUtil2/Info.c +++ b/cde/lib/DtSvc/DtUtil2/Info.c @@ -143,7 +143,7 @@ DtInfoShowTopic ( static DtInfoShowStatus -ConnectToMessageServer () +ConnectToMessageServer (void) { char * procid; Tt_status status; -- 2.25.1