From ed5d9522941fa5202fdd2a2947dae64c0c205e02 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Thu, 28 Jun 2018 03:51:33 +0100 Subject: [PATCH] dbtoman: Change to ANSI function definitions --- cde/doc/util/dbtoman/instant/browse.c | 4 ++-- cde/doc/util/dbtoman/instant/info.c | 2 +- cde/doc/util/dbtoman/instant/main.c | 4 ++-- cde/doc/util/dbtoman/instant/tranvar.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) 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; -- 2.25.1