From: Peter Howkins Date: Thu, 28 Jun 2018 02:53:31 +0000 (+0100) Subject: libDtHelp: Change to ANSI function definitions X-Git-Tag: 2.3.0a~369 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e43dbc5460c68136fe82512b7a5e193024de26f0;p=oweals%2Fcde.git libDtHelp: Change to ANSI function definitions --- diff --git a/cde/lib/DtHelp/Environ_c.c b/cde/lib/DtHelp/Environ_c.c index 8a6393fc..00792d98 100644 --- a/cde/lib/DtHelp/Environ_c.c +++ b/cde/lib/DtHelp/Environ_c.c @@ -45,7 +45,7 @@ #include #include -char * _DtCliSrvGetDtUserSession() +char * _DtCliSrvGetDtUserSession(void) { char * envVar = getenv("DTUSERSESSION"); char * ret_envVar = NULL; diff --git a/cde/lib/DtHelp/Helpos.c b/cde/lib/DtHelp/Helpos.c index 91b11ca3..d88c7a02 100644 --- a/cde/lib/DtHelp/Helpos.c +++ b/cde/lib/DtHelp/Helpos.c @@ -390,7 +390,7 @@ char *_DtHelpGetMessage( * If that is NULL, returns NULL. * *****************************************************************************/ -char *_DtHelpGetLocale() +char *_DtHelpGetLocale(void) { char *loc; diff --git a/cde/lib/DtHelp/XbmUtils.c b/cde/lib/DtHelp/XbmUtils.c index 1a30ad3f..2052dfb8 100644 --- a/cde/lib/DtHelp/XbmUtils.c +++ b/cde/lib/DtHelp/XbmUtils.c @@ -93,7 +93,7 @@ static short hexTable[256]; /* conversion value */ * Table index for the hex values. Initialized once, first time. * Used for translation value or delimiter significance lookup. */ -static void initHexTable() +static void initHexTable(void) { /* * We build the table at run time for several reasons: @@ -124,8 +124,7 @@ static void initHexTable() /* * read next hex value in the input stream, return -1 if EOF */ -static int NextInt (fstream) - _DtGrStream *fstream; +static int NextInt (_DtGrStream *fstream) { int ch; int value = 0;