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 | |
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>
-rw-r--r-- | coreutils/cal.c | 2 | ||||
-rw-r--r-- | include/unicode.h | 4 | ||||
-rw-r--r-- | libbb/progress.c | 2 | ||||
-rw-r--r-- | libbb/unicode.c | 11 | ||||
-rw-r--r-- | networking/udhcp/dumpleases.c | 2 |
5 files changed, 11 insertions, 10 deletions
diff --git a/coreutils/cal.c b/coreutils/cal.c index ef5dbeadb..f18c16120 100644 --- a/coreutils/cal.c +++ b/coreutils/cal.c | |||
@@ -138,7 +138,7 @@ int cal_main(int argc UNUSED_PARAM, char **argv) | |||
138 | if (julian) | 138 | if (julian) |
139 | *hp++ = ' '; | 139 | *hp++ = ' '; |
140 | { | 140 | { |
141 | char *two_wchars = unicode_conv_to_printable_fixedwidth(NULL, buf, 2); | 141 | char *two_wchars = unicode_conv_to_printable_fixedwidth(/*NULL,*/ buf, 2); |
142 | strcpy(hp, two_wchars); | 142 | strcpy(hp, two_wchars); |
143 | free(two_wchars); | 143 | free(two_wchars); |
144 | } | 144 | } |
diff --git a/include/unicode.h b/include/unicode.h index 1dd55e67d..dee02e777 100644 --- a/include/unicode.h +++ b/include/unicode.h | |||
@@ -60,8 +60,8 @@ enum { | |||
60 | //UNUSED: unsigned FAST_FUNC unicode_padding_to_width(unsigned width, const char *src); | 60 | //UNUSED: unsigned FAST_FUNC unicode_padding_to_width(unsigned width, const char *src); |
61 | //UNUSED: char* FAST_FUNC unicode_conv_to_printable2(uni_stat_t *stats, const char *src, unsigned width, int flags); | 61 | //UNUSED: char* FAST_FUNC unicode_conv_to_printable2(uni_stat_t *stats, const char *src, unsigned width, int flags); |
62 | char* FAST_FUNC unicode_conv_to_printable(uni_stat_t *stats, const char *src); | 62 | char* FAST_FUNC unicode_conv_to_printable(uni_stat_t *stats, const char *src); |
63 | char* FAST_FUNC unicode_conv_to_printable_maxwidth(uni_stat_t *stats, const char *src, unsigned maxwidth); | 63 | //UNUSED: char* FAST_FUNC unicode_conv_to_printable_maxwidth(uni_stat_t *stats, const char *src, unsigned maxwidth); |
64 | char* FAST_FUNC unicode_conv_to_printable_fixedwidth(uni_stat_t *stats, const char *src, unsigned width); | 64 | char* FAST_FUNC unicode_conv_to_printable_fixedwidth(/*uni_stat_t *stats,*/ const char *src, unsigned width); |
65 | 65 | ||
66 | # if ENABLE_UNICODE_USING_LOCALE | 66 | # if ENABLE_UNICODE_USING_LOCALE |
67 | 67 | ||
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) { |
diff --git a/networking/udhcp/dumpleases.c b/networking/udhcp/dumpleases.c index a15e409cc..21d62a2d2 100644 --- a/networking/udhcp/dumpleases.c +++ b/networking/udhcp/dumpleases.c | |||
@@ -57,7 +57,7 @@ int dumpleases_main(int argc UNUSED_PARAM, char **argv) | |||
57 | addr.s_addr = lease.lease_nip; | 57 | addr.s_addr = lease.lease_nip; |
58 | #if ENABLE_UNICODE_SUPPORT | 58 | #if ENABLE_UNICODE_SUPPORT |
59 | { | 59 | { |
60 | char *uni_name = unicode_conv_to_printable_fixedwidth(NULL, lease.hostname, 19); | 60 | char *uni_name = unicode_conv_to_printable_fixedwidth(/*NULL,*/ lease.hostname, 19); |
61 | printf(" %-16s%s ", inet_ntoa(addr), uni_name); | 61 | printf(" %-16s%s ", inet_ntoa(addr), uni_name); |
62 | free(uni_name); | 62 | free(uni_name); |
63 | } | 63 | } |