From 94f78da5df08e59b9e19e49b732bba9682bcc65d Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Thu, 28 Jun 2018 04:18:25 +0100 Subject: [PATCH] dtsession: Change to ANSI function definitions --- cde/programs/dtsession/SmCommun.c | 9 +++------ cde/programs/dtsession/SmGlobals.c | 4 ++-- cde/programs/dtsession/SmSave.c | 8 ++++---- cde/programs/dtsession/SmXSMP.c | 18 +++++++++--------- 4 files changed, 18 insertions(+), 21 deletions(-) diff --git a/cde/programs/dtsession/SmCommun.c b/cde/programs/dtsession/SmCommun.c index 5f50b71d..b2d093a4 100644 --- a/cde/programs/dtsession/SmCommun.c +++ b/cde/programs/dtsession/SmCommun.c @@ -481,7 +481,7 @@ StartMsgServer(void) * *************************************<->***********************************/ static void -DtwmStarted() +DtwmStarted(void) { smGD.dtwmRunning = True; } /* END OF FUNCTION DtwmStarted */ @@ -940,11 +940,8 @@ ProcessReloadActionsDatabase(void) } void -ProcessEvent(w, client_data, event, continue_to_dispatch) - Widget w; - XtPointer client_data; - XEvent *event; - Boolean *continue_to_dispatch; +ProcessEvent(Widget w, XtPointer client_data, XEvent *event, + Boolean *continue_to_dispatch) { switch(event->type) { diff --git a/cde/programs/dtsession/SmGlobals.c b/cde/programs/dtsession/SmGlobals.c index 24ba402f..0bb24e7e 100644 --- a/cde/programs/dtsession/SmGlobals.c +++ b/cde/programs/dtsession/SmGlobals.c @@ -959,7 +959,7 @@ SetResSet( void ) * *************************************<->***********************************/ void -UndoSetSavePath ( ) +UndoSetSavePath (void) { char * buf; @@ -2637,7 +2637,7 @@ SmExit ( } void -SetSIGPIPEToDefault () +SetSIGPIPEToDefault (void) { struct sigaction pipeSig; diff --git a/cde/programs/dtsession/SmSave.c b/cde/programs/dtsession/SmSave.c index e2f23074..6db2e4a5 100644 --- a/cde/programs/dtsession/SmSave.c +++ b/cde/programs/dtsession/SmSave.c @@ -314,7 +314,7 @@ SaveState( * *************************************<->***********************************/ int -CompleteSave ( ) +CompleteSave (void) { FILE *convertFP; @@ -414,7 +414,7 @@ CompleteSave ( ) * *************************************<->***********************************/ static void -PruneSessionDirectory () +PruneSessionDirectory (void) { DIR * dirp; struct dirent * dp; @@ -588,7 +588,7 @@ PruneSessionDirectory () * *************************************<->***********************************/ static Boolean -WriteClientDatabase () +WriteClientDatabase (void) { char *db; ClientDB outputDB; @@ -810,7 +810,7 @@ CheckRequiredProperties ( * *************************************<->***********************************/ void -NotifyProxyClients ( ) +NotifyProxyClients (void) { unsigned int topListLength, containedListLength; WindowInfo * topList; /* list of top-level windows */ diff --git a/cde/programs/dtsession/SmXSMP.c b/cde/programs/dtsession/SmXSMP.c index cc7b14fe..a1624855 100644 --- a/cde/programs/dtsession/SmXSMP.c +++ b/cde/programs/dtsession/SmXSMP.c @@ -186,7 +186,7 @@ void AddClient ( * Functions */ -Boolean InitXSMP ( ) +Boolean InitXSMP (void) { char errorMsg[ERRORMSGLEN]; char *env; @@ -299,7 +299,7 @@ InitializeSaveState ( } static void -InitializeXSMPGlobals ( ) +InitializeXSMPGlobals (void) { smXSMP.authDataEntries = NULL; @@ -920,7 +920,7 @@ SaveYourselfDoneProc ( static void -ProcessSaveYourselfResponses () +ProcessSaveYourselfResponses (void) { ClientRecPtr pClientRec; Boolean done = False; @@ -1014,7 +1014,7 @@ CloseConnectionProc ( } void -CompleteXSMPSave () +CompleteXSMPSave (void) { ClientRecPtr pClientRec; @@ -1235,7 +1235,7 @@ Tt_callback_action GetWsmClientsHandler( static -Boolean SendGetWsmClientsMessage ( ) +Boolean SendGetWsmClientsMessage (void) { Tt_message message; Tt_status status; @@ -1270,7 +1270,7 @@ Boolean SendGetWsmClientsMessage ( ) static -int GetCurrentWorkspaceNumber () +int GetCurrentWorkspaceNumber (void) { Atom currentWorkspace; Atom *workspaceList; @@ -1300,7 +1300,7 @@ int GetCurrentWorkspaceNumber () static -void CancelShutdown () +void CancelShutdown (void) { ClientRecPtr pClientRec; char *pch; @@ -1441,7 +1441,7 @@ MyIoErrorHandler ( } void -InstallIOErrorHandler () +InstallIOErrorHandler (void) { IceIOErrorHandler default_handler; @@ -1452,7 +1452,7 @@ InstallIOErrorHandler () } -void XSMPExit ( ) +void XSMPExit (void) { char * pchar; -- 2.25.1