From 7936fae07b98dc16693ab17caa9e141f0ca17bd9 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Thu, 28 Jun 2018 04:09:20 +0100 Subject: [PATCH] dtcalc: Change to ANSI function definitions --- cde/programs/dtcalc/mp.c | 3 +-- cde/programs/dtcalc/text.c | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cde/programs/dtcalc/mp.c b/cde/programs/dtcalc/mp.c index d107ff68..8e7b9e29 100644 --- a/cde/programs/dtcalc/mp.c +++ b/cde/programs/dtcalc/mp.c @@ -1633,8 +1633,7 @@ L130: void -mpdiv(x, y, z) -int *x, *y, *z ; +mpdiv(int *x, int *y, int *z) { static int i, i2, ie, iz3 ; diff --git a/cde/programs/dtcalc/text.c b/cde/programs/dtcalc/text.c index 147ce8b3..bd647720 100644 --- a/cde/programs/dtcalc/text.c +++ b/cde/programs/dtcalc/text.c @@ -65,7 +65,7 @@ char *vstrs[MAXVMESS] ; void -init_cmdline_opts() /* Initialize command line option strings. */ +init_cmdline_opts(void) /* Initialize command line option strings. */ { cmdstr[(int) CMD_ACC] = "-a" ; cmdstr[(int) CMD_MODE] = "-m" ; @@ -78,7 +78,7 @@ init_cmdline_opts() /* Initialize command line option strings. */ void -init_text() /* Setup text strings depending upon language. */ +init_text(void) /* Setup text strings depending upon language. */ { int i ; @@ -640,7 +640,7 @@ init_text() /* Setup text strings depending upon language. */ } void -init_mess() /* Setup text strings depending upon language. */ +init_mess(void) /* Setup text strings depending upon language. */ { int i ; -- 2.25.1