]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't declare directly functions declared by xalloc.h.
authorJim Meyering <jim@meyering.net>
Fri, 10 Jan 2003 21:45:21 +0000 (21:45 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 10 Jan 2003 21:45:21 +0000 (21:45 +0000)
Include "xalloc.h" instead.

lib/idcache.c

index 7a827e3b004aab7200178b012563e5c3c5483049..250f1a186436203b10ddce7f5e3ae334e9131dc7 100644 (file)
@@ -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