From 12683dd8c6e37437c048a3733cf1fd11ed78e543 Mon Sep 17 00:00:00 2001 From: dtrg Date: Mon, 16 Oct 2006 23:20:11 +0000 Subject: [PATCH] Sanitised the use of #include files to more properly conform to the standards. --- util/amisc/anm.c | 9 ++++----- util/amisc/ashow.c | 2 +- util/amisc/asize.c | 1 + util/amisc/astrip.c | 5 +++-- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/util/amisc/anm.c b/util/amisc/anm.c index 92dd9908c..d5ad81597 100644 --- a/util/amisc/anm.c +++ b/util/amisc/anm.c @@ -10,13 +10,14 @@ ** anm [-gopruns] [name ...] */ +#include +#include +#include + #include "out.h" #include "arch.h" #include "ranlib.h" -#include -#include - int numsort_flg; int sectsort_flg; int undef_flg; @@ -29,8 +30,6 @@ int read_error; struct outhead hbuf; struct outsect sbuf; long off; -char *malloc(); -char *realloc(); long s_base[S_MAX]; /* for specially encoded bases */ char *filename; int narg; diff --git a/util/amisc/ashow.c b/util/amisc/ashow.c index 11ed58d58..13809c405 100644 --- a/util/amisc/ashow.c +++ b/util/amisc/ashow.c @@ -3,6 +3,7 @@ static char rcsid[] = "$Id$"; * show - make the contents of an ACK object file human readable. */ +#include #include #include #include @@ -204,7 +205,6 @@ myalloc(u) unsigned int u; { register char *rcp; - extern char *malloc(); rcp = malloc(u); if (rcp == (char *) 0) { diff --git a/util/amisc/asize.c b/util/amisc/asize.c index 080cc289f..998be441d 100644 --- a/util/amisc/asize.c +++ b/util/amisc/asize.c @@ -4,6 +4,7 @@ */ /* $Id$ */ +#include #include #include "out.h" diff --git a/util/amisc/astrip.c b/util/amisc/astrip.c index d926967f3..bdf4eb0b0 100644 --- a/util/amisc/astrip.c +++ b/util/amisc/astrip.c @@ -4,9 +4,10 @@ */ /* $Id$ */ -#include "out.h" -#include +#include #include +#include +#include "out.h" /* -- 2.34.1