summaryrefslogtreecommitdiffstats
path: root/progress.c
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <hun@n-dimensional.de>2007-12-14 16:11:26 +0100
committerHans Ulrich Niedermann <hun@n-dimensional.de>2007-12-14 16:11:26 +0100
commit3d14ba70a6e3164556a5f984bd7a183df8a1cd00 (patch)
treef773009bebb96be72aefe74525f525c1c16b53b4 /progress.c
parent6749719af90afe9544db14bdd8e2742926f1439c (diff)
downloade2tools-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/progress.c b/progress.c
index ac44cac..d4c8f7f 100644
--- a/progress.c
+++ b/progress.c
@@ -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);
}