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 * Allocate an unused DtActionInvocationID
* between 1..INT_MAX * between 1..INT_MAX
*/ */
DtActionInvocationID _DtActAllocID() DtActionInvocationID _DtActAllocID(void)
{ {
extern _DtActInvRecT **_DtActInvRecArray; /* global */ extern _DtActInvRecT **_DtActInvRecArray; /* global */
extern int _actInvRecArraySize; /* global */ extern int _actInvRecArraySize; /* global */
@ -1030,7 +1030,7 @@ DtActionInvocationID _DtActAllocID()
* *
* Allocate an Invocation Record * Allocate an Invocation Record
*/ */
_DtActInvRecT *_DtActAllocInvRec() _DtActInvRecT *_DtActAllocInvRec(void)
{ {
extern _DtActInvRecT **_DtActInvRecArray; /* global */ extern _DtActInvRecT **_DtActInvRecArray; /* global */
extern int _actInvRecArraySize; /* global */ extern int _actInvRecArraySize; /* global */

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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