libDtSvc: Change to ANSI function definitions
authorPeter Howkins <flibble@users.sf.net>
Thu, 28 Jun 2018 02:58:49 +0000 (03:58 +0100)
committerPeter Howkins <flibble@users.sf.net>
Thu, 28 Jun 2018 02:58:49 +0000 (03:58 +0100)
cde/lib/DtSvc/DtUtil1/ActionUtil.c
cde/lib/DtSvc/DtUtil1/Dnd.c
cde/lib/DtSvc/DtUtil1/Dts.c
cde/lib/DtSvc/DtUtil1/DtsDb.c
cde/lib/DtSvc/DtUtil1/DtsInit.c
cde/lib/DtSvc/DtUtil1/DtsMM.c
cde/lib/DtSvc/DtUtil2/ChkpntClient.c
cde/lib/DtSvc/DtUtil2/DtEnvMap.c
cde/lib/DtSvc/DtUtil2/EnvControl.c
cde/lib/DtSvc/DtUtil2/Info.c

index d86e004a71ca4aff79ddfa2b471da770c54b72b7..239cb9b5fb0ea20da85949400cee41795fe14780 100644 (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 */
index 826e0dae4a91618538ba9ad8d516138375767fe7..b8decc50fb87a33b0549e6a521f483313c49e526 100644 (file)
@@ -468,7 +468,7 @@ _DtDndArgListFromVarArgs(
  * Returns the network node/host name.
  */
 String
-_DtDndGetHostName()
+_DtDndGetHostName(void)
 {
         static char *nodename;
 
index d3a61a7f565faf6d555e4072c521de04492e415b..846942dacee3385b561be11459b42c47636e2d37 100644 (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)
index 1d55cb71123e1f8d2e1faccc1d1e413ab114dcba..6983f8257810de3cb59c78148cb7359179bc85d8 100644 (file)
@@ -181,7 +181,7 @@ _DtDtsDbInit(void)
 }
 
 char **
-_DtsDbListDb()
+_DtsDbListDb(void)
 {
        int     i;
        char    **list = 0;
index f28fe90fcdc56581598a3626907a4a51136b2c3f..7d67657f2a7e377fd4ccba4823cc1729f14838de 100644 (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;
index b06244ff251dd28236c48156050533bbcc0119d5..b6530b6a1e726687ce6cdc40c9c124ca521baf4f 100644 (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;
 
index aa132fdacdcc9ba9c609e1cf532d517a0dca2653..4b7ebb8edb7a1179ecff6a4a4ddd6c9985bca5c3 100644 (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);
index 13404acc361eaba5ea77ac20995579f091f89f2e..b01669bed901f222e369ea29ae89e19339233ade 100644 (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;
index 13ca8c1e41025242664d0c30665d7dfc6753d1c1..798ce64c25e13564da090ac9f34b732ce545680c 100644 (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);
index ada065f370658ab111c0c18b1c4aab00a857c32d..d3b169e812e08ccb898c7d8f0c802fc6d86c9415 100644 (file)
@@ -143,7 +143,7 @@ DtInfoShowTopic (
 
 
 static DtInfoShowStatus
-ConnectToMessageServer ()
+ConnectToMessageServer (void)
 {
        char                    * procid;
        Tt_status               status;