From: Peter Howkins Date: Thu, 28 Jun 2018 02:51:33 +0000 (+0100) Subject: dbtoman: Change to ANSI function definitions X-Git-Tag: 2.3.0a~370 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ed5d9522941fa5202fdd2a2947dae64c0c205e02;p=oweals%2Fcde.git dbtoman: Change to ANSI function definitions --- diff --git a/cde/doc/util/dbtoman/instant/browse.c b/cde/doc/util/dbtoman/instant/browse.c index 246ef22d..6696e420 100644 --- a/cde/doc/util/dbtoman/instant/browse.c +++ b/cde/doc/util/dbtoman/instant/browse.c @@ -125,7 +125,7 @@ static char *br_help_msg[] = { /* ______________________________________________________________________ */ void -Browse() +Browse(void) { char buf[256], *cmd, **av, **sv, *cmapfile, *sdatafile; char *Prompt; @@ -186,7 +186,7 @@ Browse() if (av[1] && isdigit(*av[1])) { n = atoi(av[1]); if (n < ce->ndcont) { - printf(ce->dcont[n]); + printf("%s", ce->dcont[n]); fputs("\n", stdout); } else if (ce->ndcont == 0) diff --git a/cde/doc/util/dbtoman/instant/info.c b/cde/doc/util/dbtoman/instant/info.c index c8752dcb..229fac42 100644 --- a/cde/doc/util/dbtoman/instant/info.c +++ b/cde/doc/util/dbtoman/instant/info.c @@ -302,7 +302,7 @@ PrintStats( */ void -PrintIDList() +PrintIDList(void) { ID_t *id; Element_t *ep; diff --git a/cde/doc/util/dbtoman/instant/main.c b/cde/doc/util/dbtoman/instant/main.c index 811249ec..41d3fea0 100644 --- a/cde/doc/util/dbtoman/instant/main.c +++ b/cde/doc/util/dbtoman/instant/main.c @@ -211,7 +211,7 @@ Initialize1( /* Initialization stuff done after dealing with args. */ static void -Initialize2() +Initialize2(void) { SetMappingNV(Variables, "transpec", tranfile ? tranfile : "??"); @@ -344,7 +344,7 @@ static char *help_msg[] = { }; static void -DoHelpMessage() +DoHelpMessage(void) { char **s = help_msg; printf("usage: %s [option ...] [file]", this_prog); diff --git a/cde/doc/util/dbtoman/instant/tranvar.c b/cde/doc/util/dbtoman/instant/tranvar.c index e6533693..5a800808 100644 --- a/cde/doc/util/dbtoman/instant/tranvar.c +++ b/cde/doc/util/dbtoman/instant/tranvar.c @@ -575,7 +575,7 @@ Get_A_C_value(char * name) */ void -GetIDREFnames() +GetIDREFnames(void) { char *cp;