Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix unused variable
Baptiste Daroussin committed 4 years ago
commit 7347761dcbdb79aa1d6fb97fb57c858fa65b758a
parent e5722c0
2 files changed +4 -1
modified libpkg/pkg_add.c
@@ -747,9 +747,11 @@ pkg_extract_finalize(struct pkg *pkg)
	struct pkg_dir *d = NULL;
	char path[MAXPATHLEN + 8];
	const char *fto;
+
#ifdef HAVE_CHFLAGSAT
	bool install_as_user;

	install_as_user = (getenv("INSTALL_AS_USER") != NULL);
+
#endif

	while (pkg_files(pkg, &f) == EPKG_OK) {

modified libpkg/pkgdb.c
@@ -1095,7 +1095,6 @@ pkgdb_syscall_overload(void)
void
pkgdb_nfs_corruption(sqlite3 *db)
{
-
	int dbdirfd = pkg_get_dbdirfd();

	if (sqlite3_errcode(db) != SQLITE_CORRUPT)
		return;
@@ -1105,6 +1104,7 @@ pkgdb_nfs_corruption(sqlite3 *db)
	 */

#if defined(HAVE_SYS_STATVFS_H) && defined(ST_LOCAL)
+
	int dbdirfd = pkg_get_dbdirfd();
	struct statvfs stfs;

	if (fstatvfs(dbdirfd, &stfs) == 0) {
@@ -1114,6 +1114,7 @@ pkgdb_nfs_corruption(sqlite3 *db)
			    " properly setup\n");
	}
#elif defined(HAVE_FSTATFS) && defined(MNT_LOCAL)
+
	int dbdirfd = pkg_get_dbdirfd();
	struct statfs stfs;

	if (fstatfs(dbdirfd, &stfs) == 0) {