Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Make pkg_jobs_fetch() as static in jobs
Marin Atanasov Nikolov committed 14 years ago
commit 89ecba9b1d0d07bc9c732f2400a51a34c503a122
parent 4e26e3b
2 files changed +4 -8
modified libpkg/pkg.h
@@ -745,13 +745,6 @@ int pkg_jobs(struct pkg_jobs *jobs, struct pkg **pkg);
int pkg_jobs_apply(struct pkg_jobs *jobs, int force);

/**
-
 * Fetches packages from remote repository
-
 * @param j A valid pkg_jobs object
-
 * @return EPKG_OK on success, and EPKG_FATAL on error
-
 */
-
int pkg_jobs_fetch(struct pkg_jobs *j);
-

-
/**
 * Archive formats options.
 */
typedef enum pkg_formats { TAR, TGZ, TBZ, TXZ } pkg_formats;
modified libpkg/pkg_jobs.c
@@ -41,6 +41,8 @@
#include "private/pkg.h"
#include "private/pkgdb.h"

+
static int pkg_jobs_fetch(struct pkg_jobs *j);
+

int
pkg_jobs_new(struct pkg_jobs **j, pkg_jobs_t t, struct pkgdb *db)
{
@@ -301,7 +303,8 @@ pkg_jobs_apply(struct pkg_jobs *j, int force)
	return (EPKG_FATAL);
}

-
int pkg_jobs_fetch(struct pkg_jobs *j)
+
static int
+
pkg_jobs_fetch(struct pkg_jobs *j)
{
	struct pkg *p = NULL;
	struct pkg *pkg = NULL;