dbtoman: Change to ANSI function definitions
authorPeter Howkins <flibble@users.sf.net>
Thu, 28 Jun 2018 02:51:33 +0000 (03:51 +0100)
committerPeter Howkins <flibble@users.sf.net>
Thu, 28 Jun 2018 02:51:33 +0000 (03:51 +0100)
cde/doc/util/dbtoman/instant/browse.c
cde/doc/util/dbtoman/instant/info.c
cde/doc/util/dbtoman/instant/main.c
cde/doc/util/dbtoman/instant/tranvar.c

index 246ef22d89351d54426406228bfd100ff8e33f8f..6696e420c01c2def34225363225ed9836cee69b6 100644 (file)
@@ -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)
index c8752dcb00ebef1a6acfd4278fced8712d7e7a51..229fac42d7c77d2f7d222b5699f3600a505235bf 100644 (file)
@@ -302,7 +302,7 @@ PrintStats(
  */
 
 void
-PrintIDList()
+PrintIDList(void)
 {
     ID_t       *id;
     Element_t  *ep;
index 811249ecbcc38f4fe493ff43a82f3d2ffc6d1fba..41d3fea0438db52f3702ca4d12b6ee389b68cb43 100644 (file)
@@ -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);
index e6533693c3f94d323fa253dbc9a2eb7324954026..5a800808866903dc4cb1da0ed6fc10996729fe49 100644 (file)
@@ -575,7 +575,7 @@ Get_A_C_value(char * name)
  */
 
 void
-GetIDREFnames()
+GetIDREFnames(void)
 {
     char       *cp;