Mercurial > hg > octave-nkf > gnulib-hg
changeset 3621:56f442359b0d
Include unlocked-io.h after all system headers.
Remove explicit declarations of xmalloc, xrealloc,
and xstrdup. Instead, include "xalloc.h".
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 17 Nov 2001 13:50:40 +0000 |
parents | 16386f80321b |
children | 7f1ff9bec452 |
files | lib/mountlist.c |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ #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 @@ # 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