summaryrefslogtreecommitdiff
path: root/lib/idcache.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-10 21:45:21 +0000
committerJim Meyering <jim@meyering.net>2003-01-10 21:45:21 +0000
commit4ac2ebda980e920ef33e55237ac8bf9bfe8aad9a (patch)
treef844b7f5ca6a9ddbd59df4094953f977ebb7f12c /lib/idcache.c
parent3242594f7b16ec460a13d7965d2421ee97a1da08 (diff)
downloadcoreutils-4ac2ebda980e920ef33e55237ac8bf9bfe8aad9a.tar.xz
Don't declare directly functions declared by xalloc.h.
Include "xalloc.h" instead.
Diffstat (limited to 'lib/idcache.c')
-rw-r--r--lib/idcache.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/idcache.c b/lib/idcache.c
index 7a827e3b0..250f1a186 100644
--- a/lib/idcache.c
+++ b/lib/idcache.c
@@ -1,5 +1,5 @@
/* idcache.c -- map user and group IDs, cached for speed
- Copyright (C) 1985, 1988, 1989, 1990, 1997, 1998 Free Software
+ Copyright (C) 1985, 1988, 1989, 1990, 1997, 1998, 2003 Free Software
Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -35,6 +35,8 @@
# include <unistd.h>
#endif
+#include "xalloc.h"
+
#ifndef _POSIX_VERSION
struct passwd *getpwuid ();
struct passwd *getpwnam ();
@@ -42,9 +44,6 @@ struct group *getgrgid ();
struct group *getgrnam ();
#endif
-char *xmalloc ();
-char *xstrdup ();
-
#ifdef __DJGPP__
static char digits[] = "0123456789";
#endif