findutils-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Findutils-patches] use idcache.h


From: Eric Blake
Subject: [Findutils-patches] use idcache.h
Date: Tue, 21 Aug 2007 21:05:35 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Now that gnulib provides idcache.h, we should use it instead of rolling
our own declarations.  OK to apply?

2007-08-21  Eric Blake  <address@hidden>

        Update to recent gnulib addition of idcache.h.
        * lib/listfile.c (getuser, getgroup): Use header rather than
        declaring things ourself.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGy6f/84KuGfSFAYARAh+JAJ45rYWqwL07r8q+/bflwgBTa692KgCgkV+P
TBkzg+0NxUXoOEah4GHkznI=
=hMAR
-----END PGP SIGNATURE-----
Index: lib/listfile.c
===================================================================
RCS file: /sources/findutils/findutils/lib/listfile.c,v
retrieving revision 1.26
diff -u -p -r1.26 listfile.c
--- lib/listfile.c      19 Aug 2007 15:31:38 -0000      1.26
+++ lib/listfile.c      22 Aug 2007 03:03:45 -0000
@@ -38,6 +38,7 @@
 #include "error.h"
 #include "filemode.h"
 #include "dircallback.h"
+#include "idcache.h"
 
 #include "listfile.h"
 
@@ -165,12 +166,8 @@
 
 static void print_name (register const char *p, FILE *stream, int 
literal_control_chars);
 
-extern char * getgroup (gid_t gid);
-extern char * getuser (uid_t uid);
 
-
-
-size_t 
+size_t
 file_blocksize(const struct stat *p)
 {
   return ST_NBLOCKSIZE;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]