From 47cf071858b33e546763fffe33efa9fbb1862d9a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 17 Nov 2001 13:50:40 +0000 Subject: [PATCH] Include unlocked-io.h after all system headers. Remove explicit declarations of xmalloc, xrealloc, and xstrdup. Instead, include "xalloc.h". --- lib/mountlist.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/mountlist.c b/lib/mountlist.c index 79f0d535ed..ed91f9ec7e 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -21,8 +21,7 @@ #include #include -#include "mountlist.h" -#include "unlocked-io.h" + #ifdef STDC_HEADERS # include @@ -34,13 +33,11 @@ void free (); #else # include #endif +#include "xalloc.h" #ifndef strstr char *strstr (); #endif -char *xmalloc (); -char *xrealloc (); -char *xstrdup (); #include #ifndef errno @@ -145,6 +142,9 @@ extern int errno; # define MNT_IGNORE(M) 0 #endif +#include "mountlist.h" +#include "unlocked-io.h" + #ifdef MOUNTED_GETMNTENT1 /* 4.3BSD, SunOS, HP-UX, Dynix, Irix. */ /* Return the value of the hexadecimal number represented by CP. No prefix (like '0x') or suffix (like 'h') is expected to be -- 2.30.2