Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkg_create: remove unused variable from hash_file
Baptiste Daroussin committed 3 years ago
commit 490b35c484e9327a0f927b6d0ed42729bf444859
parent b5cf318
1 file changed +3 -3
modified libpkg/pkg_create.c
@@ -309,7 +309,7 @@ pkg_create_set_overwrite(struct pkg_create *pc, bool overwrite)
}

static int
-
hash_file(struct pkg_create *pc, struct pkg *pkg)
+
hash_file(struct pkg *pkg)
{
	char hash_dest[MAXPATHLEN];
	char filename[MAXPATHLEN];
@@ -362,7 +362,7 @@ pkg_create_i(struct pkg_create *pc, struct pkg *pkg, bool hash)
	packing_finish(pkg_archive);

	if (hash && ret == EPKG_OK)
-
		ret = hash_file(pc, pkg);
+
		ret = hash_file(pkg);

	return (ret);
}
@@ -403,7 +403,7 @@ pkg_create(struct pkg_create *pc, const char *metadata, const char *plist,

	packing_finish(pkg_archive);
	if (hash && ret == EPKG_OK)
-
		ret = hash_file(pc, pkg);
+
		ret = hash_file(pkg);

	pkg_free(pkg);
	return (ret);