X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fxreadlink.c;h=347357897632b83fc53bb6155af1803850f06fc2;hb=6e9405a068eabd607da1b526b68e4373ae43da71;hp=e4c565f8bb9e1bf292a2d83459d966f4556ae26b;hpb=552a680fa612218b68d4ef2f49bc276b95f6677b;p=gnulib.git diff --git a/lib/xreadlink.c b/lib/xreadlink.c index e4c565f8b..347357897 100644 --- a/lib/xreadlink.c +++ b/lib/xreadlink.c @@ -30,12 +30,8 @@ extern int errno; #endif #include -#if HAVE_SYS_TYPES_H -# include -#endif -#if HAVE_STDLIB_H -# include -#endif +#include +#include #if HAVE_UNISTD_H # include #endif @@ -53,7 +49,7 @@ extern int errno; /* Call readlink to get the symbolic link value of FILENAME. Return a pointer to that NUL-terminated string in malloc'd storage. If readlink fails, return NULL (caller may use errno to diagnose). - If realloc fails, or if the link value is longer than SIZE_MAX :-), + If malloc fails, or if the link value is longer than SSIZE_MAX :-), give a diagnostic and exit. */ char *