From 53f7de794ac79b03787a7c0838bb8f6448457968 Mon Sep 17 00:00:00 2001 From: David Given Date: Mon, 10 Sep 2018 22:55:05 +0200 Subject: [PATCH] Ansify. --- h/con_float | 5 ++--- mach/proto/ncg/fillem.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/h/con_float b/h/con_float index ad959d34b..a0ce783cc 100644 --- a/h/con_float +++ b/h/con_float @@ -275,7 +275,7 @@ int sz; #endif /* USE_FLT */ #ifdef CODE_GENERATOR -con_float() +void con_float(void) { char buf[8]; int rval = float_cst(str, (int)argval, buf); @@ -301,8 +301,7 @@ con_float() #endif /* CODE_GENERATOR */ #ifdef CODE_EXPANDER -con_float(str, argval) char* str; -arith argval; +void con_float(const char* str, arith argval) { char buf[8]; int rval = float_cst(str, (int)argval, buf); diff --git a/mach/proto/ncg/fillem.c b/mach/proto/ncg/fillem.c index 7f479337e..7f0e4c681 100644 --- a/mach/proto/ncg/fillem.c +++ b/mach/proto/ncg/fillem.c @@ -83,7 +83,7 @@ extern short em_ptyp[]; /* machine dependent */ void con_part(int, word); void con_mult(word); -int con_float(void); /* actually returns void, but need K&R C compatibility */ +void con_float(void); /* actually returns void, but need K&R C compatibility */ void prolog(full nlocals); void mes(word);