diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2007-12-14 16:11:26 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2007-12-14 16:11:26 +0100 |
commit | 3d14ba70a6e3164556a5f984bd7a183df8a1cd00 (patch) | |
tree | f773009bebb96be72aefe74525f525c1c16b53b4 /progress.c | |
parent | 6749719af90afe9544db14bdd8e2742926f1439c (diff) | |
download | e2tools-3d14ba70a6e3164556a5f984bd7a183df8a1cd00.tar.gz e2tools-3d14ba70a6e3164556a5f984bd7a183df8a1cd00.tar.xz e2tools-3d14ba70a6e3164556a5f984bd7a183df8a1cd00.zip |
Make e2tools compile without warnings (Fedora)
This is Fedora's e2tools-fedora-fixes.patch
Diffstat (limited to 'progress.c')
-rw-r--r-- | progress.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -27,6 +27,7 @@ /* System Headers */ #include <stdio.h> #include <unistd.h> +#include <string.h> #include <sys/stat.h> #include <sys/time.h> @@ -154,7 +155,7 @@ void update_progress(unsigned long num_bytes) if (prog_sbuf != NULL && prog_time != tv.tv_sec) { prog_time = tv.tv_sec; - fprintf(stderr, "%s %10d / %10d\r", prog_file, num_bytes, + fprintf(stderr, "%s %10ld / %10ld\r", prog_file, num_bytes, prog_sbuf->st_size); fflush(stderr); } |