diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-26 12:03:24 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-11-26 12:03:24 +0100 |
commit | 924a179cb7fb910a9e4a13d9ef124d224b6c152b (patch) | |
tree | c2a939596c8c751569f93848dd4d11ffd213b86a | |
parent | 26ad256bd0badc17d70f347c27cf5ed0699eccc5 (diff) | |
download | busybox-w32-924a179cb7fb910a9e4a13d9ef124d224b6c152b.tar.gz busybox-w32-924a179cb7fb910a9e4a13d9ef124d224b6c152b.tar.bz2 busybox-w32-924a179cb7fb910a9e4a13d9ef124d224b6c152b.zip |
build system: do not generate MAX_APPLET_NAME_LEN (unused)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | applets/applet_tables.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/applets/applet_tables.c b/applets/applet_tables.c index 152d5f441..94b974e09 100644 --- a/applets/applet_tables.c +++ b/applets/applet_tables.c | |||
@@ -53,7 +53,7 @@ int main(int argc, char **argv) | |||
53 | { | 53 | { |
54 | int i; | 54 | int i; |
55 | int ofs; | 55 | int ofs; |
56 | unsigned MAX_APPLET_NAME_LEN = 1; | 56 | // unsigned MAX_APPLET_NAME_LEN = 1; |
57 | 57 | ||
58 | qsort(applets, NUM_APPLETS, sizeof(applets[0]), cmp_name); | 58 | qsort(applets, NUM_APPLETS, sizeof(applets[0]), cmp_name); |
59 | 59 | ||
@@ -89,8 +89,8 @@ int main(int argc, char **argv) | |||
89 | printf("const char applet_names[] ALIGN1 = \"\"\n"); | 89 | printf("const char applet_names[] ALIGN1 = \"\"\n"); |
90 | for (i = 0; i < NUM_APPLETS; i++) { | 90 | for (i = 0; i < NUM_APPLETS; i++) { |
91 | printf("\"%s\" \"\\0\"\n", applets[i].name); | 91 | printf("\"%s\" \"\\0\"\n", applets[i].name); |
92 | if (MAX_APPLET_NAME_LEN < strlen(applets[i].name)) | 92 | // if (MAX_APPLET_NAME_LEN < strlen(applets[i].name)) |
93 | MAX_APPLET_NAME_LEN = strlen(applets[i].name); | 93 | // MAX_APPLET_NAME_LEN = strlen(applets[i].name); |
94 | } | 94 | } |
95 | printf(";\n\n"); | 95 | printf(";\n\n"); |
96 | 96 | ||
@@ -130,8 +130,8 @@ int main(int argc, char **argv) | |||
130 | printf("};\n"); | 130 | printf("};\n"); |
131 | #endif | 131 | #endif |
132 | //printf("#endif /* SKIP_definitions */\n"); | 132 | //printf("#endif /* SKIP_definitions */\n"); |
133 | printf("\n"); | 133 | // printf("\n"); |
134 | printf("#define MAX_APPLET_NAME_LEN %u\n", MAX_APPLET_NAME_LEN); | 134 | // printf("#define MAX_APPLET_NAME_LEN %u\n", MAX_APPLET_NAME_LEN); |
135 | 135 | ||
136 | if (argv[2]) { | 136 | if (argv[2]) { |
137 | char line_old[80]; | 137 | char line_old[80]; |