From e57fa0384f63a33120b96ea0c63b4b05a110009d Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Thu, 28 Jun 2018 04:13:21 +0100 Subject: [PATCH] dtfile: Change to ANSI function definitions --- cde/programs/dtfile/Desktop.c | 14 ++++---------- cde/programs/dtfile/Find.c | 5 +---- cde/programs/dtfile/Menu.c | 2 +- cde/programs/dtfile/ToolTalk.c | 2 +- 4 files changed, 7 insertions(+), 16 deletions(-) diff --git a/cde/programs/dtfile/Desktop.c b/cde/programs/dtfile/Desktop.c index 80cf8bd1..19490d31 100644 --- a/cde/programs/dtfile/Desktop.c +++ b/cde/programs/dtfile/Desktop.c @@ -1556,10 +1556,7 @@ DrawAInput ( ************************************************************************/ void -RemoveDT (w, client_data, call_data) - Widget w; - XtPointer client_data; - XtPointer call_data; +RemoveDT (Widget w, XtPointer client_data, XtPointer call_data) { DesktopRec *desktopWindow = (DesktopRec *) client_data; int i, j, num_of_files; @@ -1609,11 +1606,8 @@ RemoveDT (w, client_data, call_data) #ifdef SUN_PERF void -RemoveMovedObjectFromDT (w, client_data, file_cnt, file_list) - Widget w; - XtPointer client_data; - int file_cnt ; - char **file_list ; +RemoveMovedObjectFromDT (Widget w, XtPointer client_data, int file_cnt, + char **file_list) { DesktopRec *desktopWindow = (DesktopRec *) client_data; int i, j, k, m, num_of_files; @@ -2412,7 +2406,7 @@ ProcessDTSelection ( void -UnpostDTTextField () +UnpostDTTextField (void) { DesktopRec *desktopWindow; diff --git a/cde/programs/dtfile/Find.c b/cde/programs/dtfile/Find.c index 71fb94bb..b53145db 100644 --- a/cde/programs/dtfile/Find.c +++ b/cde/programs/dtfile/Find.c @@ -2864,10 +2864,7 @@ SetFocus( } FILE * -findpopen(cmd,mode,childpid) - char *cmd; - char *mode; - int *childpid; +findpopen(char *cmd, char *mode, int *childpid) { static char *pname = "findpopen"; int fd[2]; diff --git a/cde/programs/dtfile/Menu.c b/cde/programs/dtfile/Menu.c index c53489b5..47fba56f 100644 --- a/cde/programs/dtfile/Menu.c +++ b/cde/programs/dtfile/Menu.c @@ -696,7 +696,7 @@ GetMainMenuData ( void -GetHomeDir( ) +GetHomeDir(void) { struct passwd * pwInfo; diff --git a/cde/programs/dtfile/ToolTalk.c b/cde/programs/dtfile/ToolTalk.c index 294069fb..34924a5f 100644 --- a/cde/programs/dtfile/ToolTalk.c +++ b/cde/programs/dtfile/ToolTalk.c @@ -151,7 +151,7 @@ FileCallback( void -FinalizeToolTalkSession( ) +FinalizeToolTalkSession(void) { Tt_status ttRc; int i; -- 2.25.1