aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-02-22 03:57:22 -0500
committerMike Frysinger <vapier@gentoo.org>2015-02-22 03:57:22 -0500
commit667542314e66dda0897778b0ce75dd56d9adddc7 (patch)
treeedf447c2f9f456da1a2c604bd02a4828eb26afcf
parentmkdir: add a mkdir_p_at helper (diff)
downloadportage-utils-667542314e66dda0897778b0ce75dd56d9adddc7.tar.gz
portage-utils-667542314e66dda0897778b0ce75dd56d9adddc7.tar.bz2
portage-utils-667542314e66dda0897778b0ce75dd56d9adddc7.zip
qmerge: push down global Pkg state to funcs that use it
-rw-r--r--qmerge.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/qmerge.c b/qmerge.c
index 44b2f47..f713a7f 100644
--- a/qmerge.c
+++ b/qmerge.c
@@ -95,7 +95,7 @@ struct pkg_t {
size_t SIZE;
char USE[BUFSIZ];
char REPO[64];
-} Pkg;
+};
struct llist_char_t {
char *data;
@@ -1579,6 +1579,7 @@ grab_binpkg_info(const char *name)
char *p;
depend_atom *atom;
+ struct pkg_t Pkg;
struct pkg_t *pkg = xzalloc(sizeof(struct pkg_t));
struct pkg_t *rpkg = xzalloc(sizeof(struct pkg_t));
@@ -1678,6 +1679,7 @@ find_binpkg(const char *name)
FILE *fp;
char buf[BUFSIZ];
char *p;
+ struct pkg_t Pkg;
char PF[sizeof(Pkg.PF)];
char CATEGORY[sizeof(Pkg.CATEGORY)];
@@ -1759,6 +1761,7 @@ parse_packages(queue *todo)
size_t buflen;
char *buf, *p;
long lineno = 0;
+ struct pkg_t Pkg;
fp = open_binpkg_index();