summary refs log tree commit diff
path: root/pkgs/os-specific/linux/policycoreutils/fix-printf-type.patch
blob: 6ab2d6dccc73404b623bc0ead40adacc29989adc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
diff -Nru policycoreutils-2.4/setfiles/restore.c policycoreutils-2.4.new/setfiles/restore.c
--- policycoreutils-2.4/setfiles/restore.c	2015-02-02 09:38:10.000000000 -0500
+++ policycoreutils-2.4.new/setfiles/restore.c	2015-08-29 20:44:13.693023222 -0400
@@ -118,7 +118,7 @@
 		r_opts->count++;
 		if (r_opts->count % STAR_COUNT == 0) {
 			if (r_opts->progress == 1) {
-				fprintf(stdout, "\r%luk", (size_t) r_opts->count / STAR_COUNT );
+				fprintf(stdout, "\r%zuk", (size_t) r_opts->count / STAR_COUNT );
 			} else {
 				if (r_opts->nfile > 0) {
 					progress = (r_opts->count < r_opts->nfile) ? (100.0 * r_opts->count / r_opts->nfile) : 100;