diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/progress.c | 2 | ||||
-rw-r--r-- | libbb/unicode.c | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/libbb/progress.c b/libbb/progress.c index 3c7355f..40608b0 100644 --- a/libbb/progress.c +++ b/libbb/progress.c @@ -94,7 +94,7 @@ void FAST_FUNC bb_progress_update(bb_progress_t *p, #if ENABLE_UNICODE_SUPPORT init_unicode(); { - char *buf = unicode_conv_to_printable_fixedwidth(NULL, curfile, 20); + char *buf = unicode_conv_to_printable_fixedwidth(/*NULL,*/ curfile, 20); fprintf(stderr, "\r%s%4u%% ", buf, ratio); free(buf); } diff --git a/libbb/unicode.c b/libbb/unicode.c index cf0c6be..08a4c74 100644 --- a/libbb/unicode.c +++ b/libbb/unicode.c @@ -1107,16 +1107,17 @@ char* FAST_FUNC unicode_conv_to_printable(uni_stat_t *stats, const char *src) { return unicode_conv_to_printable2(stats, src, INT_MAX, 0); } -char* FAST_FUNC unicode_conv_to_printable_maxwidth(uni_stat_t *stats, const char *src, unsigned maxwidth) +char* FAST_FUNC unicode_conv_to_printable_fixedwidth(/*uni_stat_t *stats,*/ const char *src, unsigned width) { - return unicode_conv_to_printable2(stats, src, maxwidth, 0); + return unicode_conv_to_printable2(/*stats:*/ NULL, src, width, UNI_FLAG_PAD); } -char* FAST_FUNC unicode_conv_to_printable_fixedwidth(uni_stat_t *stats, const char *src, unsigned width) + +#ifdef UNUSED +char* FAST_FUNC unicode_conv_to_printable_maxwidth(uni_stat_t *stats, const char *src, unsigned maxwidth) { - return unicode_conv_to_printable2(stats, src, width, UNI_FLAG_PAD); + return unicode_conv_to_printable2(stats, src, maxwidth, 0); } -#ifdef UNUSED unsigned FAST_FUNC unicode_padding_to_width(unsigned width, const char *src) { if (unicode_status != UNICODE_ON) { |