X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fxgethostname.c;h=494571ee1d8e4381fb88dcb07946f0cdabd3260b;hb=df308e3fc0bbea8e50977ab1e86e4ddf124606d8;hp=5178784baca5bffa889d7db3078a65f0b3f405e0;hpb=a83f0239e5027272c6f5b38fa2d06e96675d81dc;p=gnulib.git diff --git a/lib/xgethostname.c b/lib/xgethostname.c index 5178784ba..494571ee1 100644 --- a/lib/xgethostname.c +++ b/lib/xgethostname.c @@ -30,16 +30,13 @@ extern int errno; #endif #include "error.h" +#include "exit.h" #include "xalloc.h" #ifndef ENAMETOOLONG # define ENAMETOOLONG 9999 #endif -#ifndef EXIT_FAILURE -# define EXIT_FAILURE 1 -#endif - int gethostname (); #ifndef INITIAL_HOSTNAME_LENGTH @@ -50,7 +47,7 @@ int gethostname (); If malloc fails, exit. Upon any other failure, return NULL. */ char * -xgethostname () +xgethostname (void) { char *hostname; size_t size;