aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-06-28 12:23:28 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-06-28 12:23:28 +0000
commit983fbdb2d95bfceda513d25f2e0490f114a85548 (patch)
tree0becdfb4c7a8a9e3a60236c123e508a5cfefb1ab
parent2d7646424aa11759e0c1da2a9b6f98c01e7de88e (diff)
downloadcpio-983fbdb2d95bfceda513d25f2e0490f114a85548.tar.gz
cpio-983fbdb2d95bfceda513d25f2e0490f114a85548.tar.bz2
Include xalloc.h
-rw-r--r--src/idcache.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/idcache.c b/src/idcache.c
index c524eea..1e57dd3 100644
--- a/src/idcache.c
+++ b/src/idcache.c
@@ -25,6 +25,7 @@
#include <sys/types.h>
#include <pwd.h>
#include <grp.h>
+#include <xalloc.h>
#if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
#include <string.h>
@@ -32,18 +33,7 @@
#include <strings.h>
#endif
-#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#endif
-#ifndef _POSIX_VERSION
-struct passwd *getpwuid ();
-struct passwd *getpwnam ();
-struct group *getgrgid ();
-struct group *getgrnam ();
-#endif
-
-char *xmalloc ();
-char *xstrdup ();
struct userid
{

Return to:

Send suggestions and report system problems to the System administrator.