# HG changeset patch # User Jim Meyering # Date 1006005040 0 # Node ID 56f442359b0dc221ba6f6f0e7cdf49a11745d192 # Parent 16386f80321b39e5cde2bad05a6fa6d04b04a5ea Include unlocked-io.h after all system headers. Remove explicit declarations of xmalloc, xrealloc, and xstrdup. Instead, include "xalloc.h". diff --git a/lib/mountlist.c b/lib/mountlist.c --- 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 @@ #else # include #endif +#include "xalloc.h" #ifndef strstr char *strstr (); #endif -char *xmalloc (); -char *xrealloc (); -char *xstrdup (); #include #ifndef errno @@ -145,6 +142,9 @@ # 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