print: percent arg for process_fd is integer

With commit 0a13141889 the percent
variable became an integer instead of size_t. We fix the format
modifier accordingly.
cute-signatures
Natanael Copa 2013-06-19 08:07:37 +02:00
parent 8c425a1e33
commit 0e9d67aea8
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ void apk_print_progress(int percent_flags)
} }
if (apk_progress_fd != 0) { if (apk_progress_fd != 0) {
i = snprintf(buf, sizeof(buf), "%zu\n", percent); i = snprintf(buf, sizeof(buf), "%i\n", percent);
write(apk_progress_fd, buf, i); write(apk_progress_fd, buf, i);
} }
} }