diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/progress.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libbb/progress.c b/libbb/progress.c index 23e974ce7..d071ce705 100644 --- a/libbb/progress.c +++ b/libbb/progress.c | |||
@@ -69,7 +69,7 @@ void FAST_FUNC bb_progress_init(bb_progress_t *p, const char *curfile) | |||
69 | * will be "totalsize" bytes. | 69 | * will be "totalsize" bytes. |
70 | * If totalsize == 0, then it is unknown. | 70 | * If totalsize == 0, then it is unknown. |
71 | */ | 71 | */ |
72 | void FAST_FUNC bb_progress_update(bb_progress_t *p, | 72 | int FAST_FUNC bb_progress_update(bb_progress_t *p, |
73 | uoff_t beg_size, | 73 | uoff_t beg_size, |
74 | uoff_t transferred, | 74 | uoff_t transferred, |
75 | uoff_t totalsize) | 75 | uoff_t totalsize) |
@@ -94,7 +94,7 @@ void FAST_FUNC bb_progress_update(bb_progress_t *p, | |||
94 | * Do not update on every call | 94 | * Do not update on every call |
95 | * (we can be called on every network read!) | 95 | * (we can be called on every network read!) |
96 | */ | 96 | */ |
97 | return; | 97 | return -1; |
98 | } | 98 | } |
99 | 99 | ||
100 | /* Before we lose real, unscaled sizes, produce human-readable size string */ | 100 | /* Before we lose real, unscaled sizes, produce human-readable size string */ |
@@ -211,4 +211,5 @@ void FAST_FUNC bb_progress_update(bb_progress_t *p, | |||
211 | } | 211 | } |
212 | if (notty) | 212 | if (notty) |
213 | fputc('\n', stderr); | 213 | fputc('\n', stderr); |
214 | return notty; | ||
214 | } | 215 | } |