diff options
author | 2008-03-15 16:28:06 +0000 | |
---|---|---|
committer | 2008-03-15 16:28:06 +0000 | |
commit | 7a9fb9f2012f3eef0e901645bc37e2b0f068784e (patch) | |
tree | 3bfe6109c68425daecd000fecb293c8bd3820c33 /qcache.c | |
parent | make category names accept any of the following chars. [A-Za-z0-9+_.-] (diff) | |
download | portage-utils-7a9fb9f2012f3eef0e901645bc37e2b0f068784e.tar.gz portage-utils-7a9fb9f2012f3eef0e901645bc37e2b0f068784e.tar.bz2 portage-utils-7a9fb9f2012f3eef0e901645bc37e2b0f068784e.zip |
On behalf of solar; add libq/compat.c with contains code for non-GNU platforms, based on my original Solaris patch + misc Solaris/Darwin compilation fixes
Diffstat (limited to 'qcache.c')
-rw-r--r-- | qcache.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,7 +1,7 @@ /* * Copyright 2005-2007 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 - * $Header: /var/cvsroot/gentoo-projects/portage-utils/qcache.c,v 1.32 2007/05/24 14:47:18 solar Exp $ + * $Header: /var/cvsroot/gentoo-projects/portage-utils/qcache.c,v 1.33 2008/03/15 16:28:06 grobian Exp $ * * Copyright 2006 Thomas A. Cort - <tcort@gentoo.org> */ @@ -13,7 +13,6 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> -#include <sys/dir.h> #include <sys/types.h> #include <sys/stat.h> #include <time.h> @@ -48,7 +47,7 @@ static const char *qcache_opts_help[] = { COMMON_OPTS_HELP }; -static const char qcache_rcsid[] = "$Id: qcache.c,v 1.32 2007/05/24 14:47:18 solar Exp $"; +static const char qcache_rcsid[] = "$Id: qcache.c,v 1.33 2008/03/15 16:28:06 grobian Exp $"; #define qcache_usage(ret) usage(ret, QCACHE_FLAGS, qcache_long_opts, qcache_opts_help, lookup_applet_idx("qcache")) /********************************************************************/ @@ -510,7 +509,7 @@ int qcache_traverse(void (*func)(qcache_data*)) qcache_data data; char *catpath, *pkgpath, *ebuildpath, *cachepath; int i, j, k, len, num_cat, num_pkg, num_ebuild; - struct direct **categories, **packages, **ebuilds; + struct dirent **categories, **packages, **ebuilds; xasprintf(&catpath, "%s%s", QCACHE_EDB, portdir); @@ -762,7 +761,7 @@ void qcache_stats(qcache_data *data) int i; if (!numpkg) { - struct direct **categories; + struct dirent **categories; char *catpath; int len; |