From: Peter Howkins Date: Thu, 28 Jun 2018 03:15:59 +0000 (+0100) Subject: dticon: Change to ANSI function definitions X-Git-Tag: 2.3.0a~354 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=806257b1540b6e90f624998db442c1f2aaf7b92f;p=oweals%2Fcde.git dticon: Change to ANSI function definitions --- diff --git a/cde/programs/dticon/dtIconShell.c b/cde/programs/dticon/dtIconShell.c index 4cfebb9a..04351eb0 100644 --- a/cde/programs/dticon/dtIconShell.c +++ b/cde/programs/dticon/dtIconShell.c @@ -2360,7 +2360,7 @@ build_dtIconShell( void ) /******************************************************************************* NewGraphicsOp - sets the text in the instruction line *******************************************************************************/ -static void NewGraphicsOp() +static void NewGraphicsOp(void) { static char *fillOnStr = NULL; int fillOp = False; diff --git a/cde/programs/dticon/event.c b/cde/programs/dticon/event.c index b3cff735..67cbdcff 100644 --- a/cde/programs/dticon/event.c +++ b/cde/programs/dticon/event.c @@ -801,7 +801,7 @@ Do_ButtonOp( * the middle of a polyline or polygon is no longer allowed. * ***************************************************************************/ void -EndPolyOp() +EndPolyOp(void) { Anchored = False; Clear_ClickCount(); diff --git a/cde/programs/dticon/main.c b/cde/programs/dticon/main.c index 30c869a1..1256f8fe 100644 --- a/cde/programs/dticon/main.c +++ b/cde/programs/dticon/main.c @@ -658,7 +658,7 @@ edit_notifier(char* fname, Tt_message msg, int clear) void -send_tt_saved() +send_tt_saved(void) { int mark; int fd; diff --git a/cde/programs/dticon/utils.c b/cde/programs/dticon/utils.c index 2f7cf266..91d8294f 100644 --- a/cde/programs/dticon/utils.c +++ b/cde/programs/dticon/utils.c @@ -1588,7 +1588,7 @@ stat_out( * * *X11***********************************************************************/ void -PixelTableClear() +PixelTableClear(void) { pixelTable.numItems = 0; pixelTable.lastFound = 0; @@ -2228,9 +2228,7 @@ Set_Gfx_Labels( ***************************************************************************/ #define MAX_MSG_STR 1024 -static int jskXerrorDebug(disp, error_event) -Display *disp; -XErrorEvent *error_event; +static int jskXerrorDebug(Display *disp, XErrorEvent *error_event) { char error_msg[MAX_MSG_STR]; @@ -2252,8 +2250,7 @@ XErrorEvent *error_event; * * * Purpose: This routine is needed in order to get good bfa (bba) stats * **************************************************************************/ -static int jskXerrorIODebug(disp) -Display *disp; +static int jskXerrorIODebug(Display *disp) { exit (-1); return (TRUE); @@ -2484,8 +2481,7 @@ GetSessionInfo( void ) * Purpose: Put the file name in the window title... * ***************************************************************************/ void -ChangeTitle( - ) +ChangeTitle(void) { static char *dialogTitle = NULL; Arg al[10];