Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
factorize pkg_chain_t
Baptiste Daroussin committed 3 years ago
commit 04c77dc94a8bc01fe6470ce0fd2e904f18746794
parent 298301e
3 files changed +1 -4
modified libpkg/pkg_jobs.c
@@ -65,8 +65,6 @@
#include "private/pkg_jobs.h"
#include "tllist.h"

-
typedef tll(struct pkg *) pkg_chain_t;
-

extern struct pkg_ctx ctx;

static int pkg_jobs_installed_local_pkg(struct pkg_jobs *j, struct pkg *pkg);
modified libpkg/pkg_jobs_universe.c
@@ -47,8 +47,6 @@

#define IS_DELETE(j) ((j)->type == PKG_JOBS_DEINSTALL || (j)->type == PKG_JOBS_AUTOREMOVE)

-
typedef tll(struct pkg *) pkg_chain_t;
-

struct pkg *
pkg_jobs_universe_get_local(struct pkg_jobs_universe *universe,
	const char *uid, unsigned flag)
modified libpkg/private/pkg.h
@@ -243,6 +243,7 @@ struct pkg {
	pkg_t		 type;
	struct pkg_repo		*repo;
};
+
:typedef tll(struct pkg *) pkg_chain_t;

typedef enum {
	SCRIPT_UNKNOWN = 0,