diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-11 13:08:28 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2011-01-11 13:08:28 +0100 |
commit | dc7e5c46b0204bc3489ee961a631fb00533ae597 (patch) | |
tree | bebc35d178b4ceda516e05fa84b967cd461d5399 /libbb | |
parent | 5a163b26451c591187482f99659e5fe639a0616a (diff) | |
download | busybox-w32-dc7e5c46b0204bc3489ee961a631fb00533ae597.tar.gz busybox-w32-dc7e5c46b0204bc3489ee961a631fb00533ae597.tar.bz2 busybox-w32-dc7e5c46b0204bc3489ee961a631fb00533ae597.zip |
libbb unicode: comment out usused function and unused parameter
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
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 3c7355fee..40608b047 100644 --- a/libbb/progress.c +++ b/libbb/progress.c | |||
@@ -94,7 +94,7 @@ void FAST_FUNC bb_progress_update(bb_progress_t *p, | |||
94 | #if ENABLE_UNICODE_SUPPORT | 94 | #if ENABLE_UNICODE_SUPPORT |
95 | init_unicode(); | 95 | init_unicode(); |
96 | { | 96 | { |
97 | char *buf = unicode_conv_to_printable_fixedwidth(NULL, curfile, 20); | 97 | char *buf = unicode_conv_to_printable_fixedwidth(/*NULL,*/ curfile, 20); |
98 | fprintf(stderr, "\r%s%4u%% ", buf, ratio); | 98 | fprintf(stderr, "\r%s%4u%% ", buf, ratio); |
99 | free(buf); | 99 | free(buf); |
100 | } | 100 | } |
diff --git a/libbb/unicode.c b/libbb/unicode.c index cf0c6bed9..08a4c7427 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) | |||
1107 | { | 1107 | { |
1108 | return unicode_conv_to_printable2(stats, src, INT_MAX, 0); | 1108 | return unicode_conv_to_printable2(stats, src, INT_MAX, 0); |
1109 | } | 1109 | } |
1110 | char* FAST_FUNC unicode_conv_to_printable_maxwidth(uni_stat_t *stats, const char *src, unsigned maxwidth) | 1110 | char* FAST_FUNC unicode_conv_to_printable_fixedwidth(/*uni_stat_t *stats,*/ const char *src, unsigned width) |
1111 | { | 1111 | { |
1112 | return unicode_conv_to_printable2(stats, src, maxwidth, 0); | 1112 | return unicode_conv_to_printable2(/*stats:*/ NULL, src, width, UNI_FLAG_PAD); |
1113 | } | 1113 | } |
1114 | char* FAST_FUNC unicode_conv_to_printable_fixedwidth(uni_stat_t *stats, const char *src, unsigned width) | 1114 | |
1115 | #ifdef UNUSED | ||
1116 | char* FAST_FUNC unicode_conv_to_printable_maxwidth(uni_stat_t *stats, const char *src, unsigned maxwidth) | ||
1115 | { | 1117 | { |
1116 | return unicode_conv_to_printable2(stats, src, width, UNI_FLAG_PAD); | 1118 | return unicode_conv_to_printable2(stats, src, maxwidth, 0); |
1117 | } | 1119 | } |
1118 | 1120 | ||
1119 | #ifdef UNUSED | ||
1120 | unsigned FAST_FUNC unicode_padding_to_width(unsigned width, const char *src) | 1121 | unsigned FAST_FUNC unicode_padding_to_width(unsigned width, const char *src) |
1121 | { | 1122 | { |
1122 | if (unicode_status != UNICODE_ON) { | 1123 | if (unicode_status != UNICODE_ON) { |