Sanitised the use of #include files to more properly conform to the standards.
authordtrg <none@none>
Mon, 16 Oct 2006 23:20:11 +0000 (23:20 +0000)
committerdtrg <none@none>
Mon, 16 Oct 2006 23:20:11 +0000 (23:20 +0000)
util/amisc/anm.c
util/amisc/ashow.c
util/amisc/asize.c
util/amisc/astrip.c

index 92dd990..d5ad815 100644 (file)
 **     anm [-gopruns] [name ...]
 */
 
+#include       <stdio.h>
+#include       <stdlib.h>
+#include       <ctype.h>
+
 #include       "out.h"
 #include       "arch.h"
 #include       "ranlib.h"
 
-#include       <stdio.h>
-#include       <ctype.h>
-
 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;
index 11ed58d..13809c4 100644 (file)
@@ -3,6 +3,7 @@ static char     rcsid[] = "$Id$";
  * show - make the contents of an ACK object file human readable.
  */
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -204,7 +205,6 @@ myalloc(u)
        unsigned int    u;
 {
        register char   *rcp;
-       extern char     *malloc();
 
        rcp = malloc(u);
        if (rcp == (char *) 0) {
index 080cc28..998be44 100644 (file)
@@ -4,6 +4,7 @@
  */
 /* $Id$ */
 
+#include       <stdlib.h>
 #include       <stdio.h>
 #include       "out.h"
 
index d926967..bdf4eb0 100644 (file)
@@ -4,9 +4,10 @@
  */
 /* $Id$ */
 
-#include "out.h"
-#include <signal.h>
+#include <stdlib.h>
 #include <stdio.h>
+#include <signal.h>
+#include "out.h"
 
 /*