1 |
vapier 11/12/21 04:59:21 |
2 |
|
3 |
Modified: qlist.c |
4 |
Log: |
5 |
local some variables a bit more to where they get used |
6 |
|
7 |
Revision Changes Path |
8 |
1.68 portage-utils/qlist.c |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qlist.c?rev=1.68&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qlist.c?rev=1.68&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-projects/portage-utils/qlist.c?r1=1.67&r2=1.68 |
13 |
|
14 |
Index: qlist.c |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-projects/portage-utils/qlist.c,v |
17 |
retrieving revision 1.67 |
18 |
retrieving revision 1.68 |
19 |
diff -u -r1.67 -r1.68 |
20 |
--- qlist.c 20 Dec 2011 22:47:45 -0000 1.67 |
21 |
+++ qlist.c 21 Dec 2011 04:59:21 -0000 1.68 |
22 |
@@ -1,7 +1,7 @@ |
23 |
/* |
24 |
* Copyright 2005-2010 Gentoo Foundation |
25 |
* Distributed under the terms of the GNU General Public License v2 |
26 |
- * $Header: /var/cvsroot/gentoo-projects/portage-utils/qlist.c,v 1.67 2011/12/20 22:47:45 vapier Exp $ |
27 |
+ * $Header: /var/cvsroot/gentoo-projects/portage-utils/qlist.c,v 1.68 2011/12/21 04:59:21 vapier Exp $ |
28 |
* |
29 |
* Copyright 2005-2010 Ned Ludd - <solar@g.o> |
30 |
* Copyright 2005-2010 Mike Frysinger - <vapier@g.o> |
31 |
@@ -41,7 +41,7 @@ |
32 |
/* "query filename for pkgname", */ |
33 |
COMMON_OPTS_HELP |
34 |
}; |
35 |
-static const char qlist_rcsid[] = "$Id: qlist.c,v 1.67 2011/12/20 22:47:45 vapier Exp $"; |
36 |
+static const char qlist_rcsid[] = "$Id: qlist.c,v 1.68 2011/12/21 04:59:21 vapier Exp $"; |
37 |
#define qlist_usage(ret) usage(ret, QLIST_FLAGS, qlist_long_opts, qlist_opts_help, lookup_applet_idx("qlist")) |
38 |
|
39 |
queue *filter_dups(queue *sets); |
40 |
@@ -214,8 +214,6 @@ |
41 |
static char *slotted_item, *slot; |
42 |
const char *catname = pkg_ctx->cat_ctx->name; |
43 |
const char *pkgname = pkg_ctx->name; |
44 |
- depend_atom *atom; |
45 |
- char swap[_Q_PATH_MAX]; |
46 |
|
47 |
slot = slotted_item = NULL; |
48 |
|
49 |
@@ -236,7 +234,9 @@ |
50 |
} |
51 |
} |
52 |
if (state->just_pkgname) { |
53 |
+ depend_atom *atom; |
54 |
if (state->dups_only) { |
55 |
+ char swap[_Q_PATH_MAX]; |
56 |
atom = atom_explode(pkgname); |
57 |
snprintf(state->buf, state->buflen, "%s/%s", catname, atom->P); |
58 |
snprintf(swap, sizeof(swap), "%s/%s", catname, atom->PN); |