Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix build error due to size being int64_t
Bryan Drewery committed 13 years ago
commit 12ef52f6d70c25c6281b6913e4ff5d17a8d4f345
parent d868948
1 file changed +2 -1
modified pkg/utils.c
@@ -31,6 +31,7 @@
#include <sys/stat.h>

#include <err.h>
+
#include <inttypes.h>
#include <libutil.h>
#include <string.h>
#include <unistd.h>
@@ -636,7 +637,7 @@ print_jobs_summary(struct pkg_jobs *jobs, const char *msg, ...)

			humanize_number(size, sizeof(size), pkgsize, "B", HN_AUTOSCALE, 0);

-
			printf("\t%s-%s (%ld%% of %s)\n", name, newversion, 100 - (100 * oldsize)/pkgsize, size);
+
			printf("\t%s-%s (%" PRId64 "%% of %s)\n", name, newversion, 100 - (100 * oldsize)/pkgsize, size);
			break;
		}
	}