diff options
author | Jim Meyering <jim@meyering.net> | 2001-11-17 13:50:40 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-11-17 13:50:40 +0000 |
commit | b150c16ebc3ded14e50d8ec793ebb19f681c20c7 (patch) | |
tree | ffdc71ad23699c4bf8504c6a715f29aa3f188c0f | |
parent | 76f8ced07d2442761981823a9df43583a63c0327 (diff) | |
download | coreutils-b150c16ebc3ded14e50d8ec793ebb19f681c20c7.tar.xz |
Include unlocked-io.h after all system headers.
Remove explicit declarations of xmalloc, xrealloc,
and xstrdup. Instead, include "xalloc.h".
-rw-r--r-- | lib/mountlist.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c index 79f0d535e..ed91f9ec7 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -21,8 +21,7 @@ #include <stdio.h> #include <sys/types.h> -#include "mountlist.h" -#include "unlocked-io.h" + #ifdef STDC_HEADERS # include <stdlib.h> @@ -34,13 +33,11 @@ void free (); #else # include <strings.h> #endif +#include "xalloc.h" #ifndef strstr char *strstr (); #endif -char *xmalloc (); -char *xrealloc (); -char *xstrdup (); #include <errno.h> #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 |