summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-11-08 03:39:42 +0000
committerJim Meyering <jim@meyering.net>1998-11-08 03:39:42 +0000
commitdc61111cc670a792d6f3c06f8db9a6e52f1d737a (patch)
treea7fb925fddc38df603ea7b16609c84855a54865b /lib
parent920680fe4fcd8accfbb8496a71684b0931cfda1c (diff)
downloadcoreutils-dc61111cc670a792d6f3c06f8db9a6e52f1d737a.tar.xz
(rpl_stat): Protoize.
(stat): Remove #undef.
Diffstat (limited to 'lib')
-rw-r--r--lib/stat.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/stat.c b/lib/stat.c
index 11f159f84..9b69fbee6 100644
--- a/lib/stat.c
+++ b/lib/stat.c
@@ -21,11 +21,6 @@
#include <config.h>
-/* Disable the definition of stat to rpl_stat (from config.h) in this
- file. Otherwise, we'd get conflicting prototypes for rpl_stat on
- most systems. */
-#undef stat
-
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
@@ -42,9 +37,7 @@ extern int errno;
has this bug. */
int
-rpl_stat (file, sbuf)
- const char *file;
- struct stat *sbuf;
+rpl_stat (const char *file, struct stat *sbuf)
{
if (file && *file == 0)
{