diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-12 20:58:27 +0000 |
commit | 6ca409e0e4c198fe3081346eebbae3f068fe605a (patch) | |
tree | 060cb05d99220a1eda399194d1209c269f0e8cd8 /e2fsprogs | |
parent | 4185548984357df91311f30c8e43d95f33922576 (diff) | |
download | busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2 busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip |
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount
of padding (unfortunately, needs hand editing ATM).
*: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts
size saving: 0.5k
Diffstat (limited to 'e2fsprogs')
-rw-r--r-- | e2fsprogs/chattr.c | 2 | ||||
-rw-r--r-- | e2fsprogs/fsck.c | 4 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/blkid/probe.c | 2 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/e2fsck.c | 14 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/e2p/ostype.c | 4 | ||||
-rw-r--r-- | e2fsprogs/old_e2fsprogs/fsck.c | 8 |
6 files changed, 17 insertions, 17 deletions
diff --git a/e2fsprogs/chattr.c b/e2fsprogs/chattr.c index 0ac03738c..35424f842 100644 --- a/e2fsprogs/chattr.c +++ b/e2fsprogs/chattr.c | |||
@@ -38,7 +38,7 @@ struct globals { | |||
38 | static unsigned long get_flag(char c) | 38 | static unsigned long get_flag(char c) |
39 | { | 39 | { |
40 | /* Two separate vectors take less space than vector of structs */ | 40 | /* Two separate vectors take less space than vector of structs */ |
41 | static const char flags_letter[] = "ASDacdijsutT"; | 41 | static const char flags_letter[] ALIGN1 = "ASDacdijsutT"; |
42 | static const unsigned long flags_val[] = { | 42 | static const unsigned long flags_val[] = { |
43 | /* A */ EXT2_NOATIME_FL, | 43 | /* A */ EXT2_NOATIME_FL, |
44 | /* S */ EXT2_SYNC_FL, | 44 | /* S */ EXT2_SYNC_FL, |
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c index eb1fa84c8..dfcbf67dd 100644 --- a/e2fsprogs/fsck.c +++ b/e2fsprogs/fsck.c | |||
@@ -79,7 +79,7 @@ struct fsck_instance { | |||
79 | char *base_device; /* /dev/hda for /dev/hdaN etc */ | 79 | char *base_device; /* /dev/hda for /dev/hdaN etc */ |
80 | }; | 80 | }; |
81 | 81 | ||
82 | static const char ignored_types[] = | 82 | static const char ignored_types[] ALIGN1 = |
83 | "ignore\0" | 83 | "ignore\0" |
84 | "iso9660\0" | 84 | "iso9660\0" |
85 | "nfs\0" | 85 | "nfs\0" |
@@ -90,7 +90,7 @@ static const char ignored_types[] = | |||
90 | "devpts\0"; | 90 | "devpts\0"; |
91 | 91 | ||
92 | #if 0 | 92 | #if 0 |
93 | static const char really_wanted[] = | 93 | static const char really_wanted[] ALIGN1 = |
94 | "minix\0" | 94 | "minix\0" |
95 | "ext2\0" | 95 | "ext2\0" |
96 | "ext3\0" | 96 | "ext3\0" |
diff --git a/e2fsprogs/old_e2fsprogs/blkid/probe.c b/e2fsprogs/old_e2fsprogs/blkid/probe.c index 8c6e2aa33..453b4d04a 100644 --- a/e2fsprogs/old_e2fsprogs/blkid/probe.c +++ b/e2fsprogs/old_e2fsprogs/blkid/probe.c | |||
@@ -379,7 +379,7 @@ static int probe_udf(int fd, blkid_cache cache __BLKID_ATTR((unused)), | |||
379 | { | 379 | { |
380 | int j, bs; | 380 | int j, bs; |
381 | struct iso_volume_descriptor isosb; | 381 | struct iso_volume_descriptor isosb; |
382 | const char * const * m; | 382 | const char *const *m; |
383 | 383 | ||
384 | /* determine the block size by scanning in 2K increments | 384 | /* determine the block size by scanning in 2K increments |
385 | (block sizes larger than 2K will be null padded) */ | 385 | (block sizes larger than 2K will be null padded) */ |
diff --git a/e2fsprogs/old_e2fsprogs/e2fsck.c b/e2fsprogs/old_e2fsprogs/e2fsck.c index efb870076..3d5b4f4fb 100644 --- a/e2fsprogs/old_e2fsprogs/e2fsck.c +++ b/e2fsprogs/old_e2fsprogs/e2fsck.c | |||
@@ -2168,7 +2168,7 @@ static int e2fsck_run_ext3_journal(e2fsck_t ctx) | |||
2168 | * This function will move the journal inode from a visible file in | 2168 | * This function will move the journal inode from a visible file in |
2169 | * the filesystem directory hierarchy to the reserved inode if necessary. | 2169 | * the filesystem directory hierarchy to the reserved inode if necessary. |
2170 | */ | 2170 | */ |
2171 | static const char * const journal_names[] = { | 2171 | static const char *const journal_names[] = { |
2172 | ".journal", "journal", ".journal.dat", "journal.dat", 0 }; | 2172 | ".journal", "journal", ".journal.dat", "journal.dat", 0 }; |
2173 | 2173 | ||
2174 | static void e2fsck_move_ext3_journal(e2fsck_t ctx) | 2174 | static void e2fsck_move_ext3_journal(e2fsck_t ctx) |
@@ -2179,7 +2179,7 @@ static void e2fsck_move_ext3_journal(e2fsck_t ctx) | |||
2179 | ext2_filsys fs = ctx->fs; | 2179 | ext2_filsys fs = ctx->fs; |
2180 | ext2_ino_t ino; | 2180 | ext2_ino_t ino; |
2181 | errcode_t retval; | 2181 | errcode_t retval; |
2182 | const char * const * cpp; | 2182 | const char *const * cpp; |
2183 | int group, mount_flags; | 2183 | int group, mount_flags; |
2184 | 2184 | ||
2185 | clear_problem_context(&pctx); | 2185 | clear_problem_context(&pctx); |
@@ -2372,7 +2372,7 @@ err_out: | |||
2372 | * abbreviation of the form '@<i>' is expanded by looking up the index | 2372 | * abbreviation of the form '@<i>' is expanded by looking up the index |
2373 | * letter <i> in the table below. | 2373 | * letter <i> in the table below. |
2374 | */ | 2374 | */ |
2375 | static const char * const abbrevs[] = { | 2375 | static const char *const abbrevs[] = { |
2376 | N_("aextended attribute"), | 2376 | N_("aextended attribute"), |
2377 | N_("Aerror allocating"), | 2377 | N_("Aerror allocating"), |
2378 | N_("bblock"), | 2378 | N_("bblock"), |
@@ -2410,7 +2410,7 @@ static const char * const abbrevs[] = { | |||
2410 | * Give more user friendly names to the "special" inodes. | 2410 | * Give more user friendly names to the "special" inodes. |
2411 | */ | 2411 | */ |
2412 | #define num_special_inodes 11 | 2412 | #define num_special_inodes 11 |
2413 | static const char * const special_inode_name[] = | 2413 | static const char *const special_inode_name[] = |
2414 | { | 2414 | { |
2415 | N_("<The NULL inode>"), /* 0 */ | 2415 | N_("<The NULL inode>"), /* 0 */ |
2416 | N_("<The bad blocks inode>"), /* 1 */ | 2416 | N_("<The bad blocks inode>"), /* 1 */ |
@@ -2485,7 +2485,7 @@ static void expand_at_expression(e2fsck_t ctx, char ch, | |||
2485 | struct problem_context *pctx, | 2485 | struct problem_context *pctx, |
2486 | int *first) | 2486 | int *first) |
2487 | { | 2487 | { |
2488 | const char * const *cpp; | 2488 | const char *const *cpp; |
2489 | const char *str; | 2489 | const char *str; |
2490 | 2490 | ||
2491 | /* Search for the abbreviation */ | 2491 | /* Search for the abbreviation */ |
@@ -8178,7 +8178,7 @@ struct latch_descr { | |||
8178 | * These are the prompts which are used to ask the user if they want | 8178 | * These are the prompts which are used to ask the user if they want |
8179 | * to fix a problem. | 8179 | * to fix a problem. |
8180 | */ | 8180 | */ |
8181 | static const char * const prompt[] = { | 8181 | static const char *const prompt[] = { |
8182 | N_("(no prompt)"), /* 0 */ | 8182 | N_("(no prompt)"), /* 0 */ |
8183 | N_("Fix"), /* 1 */ | 8183 | N_("Fix"), /* 1 */ |
8184 | N_("Clear"), /* 2 */ | 8184 | N_("Clear"), /* 2 */ |
@@ -8206,7 +8206,7 @@ static const char * const prompt[] = { | |||
8206 | * These messages are printed when we are preen mode and we will be | 8206 | * These messages are printed when we are preen mode and we will be |
8207 | * automatically fixing the problem. | 8207 | * automatically fixing the problem. |
8208 | */ | 8208 | */ |
8209 | static const char * const preen_msg[] = { | 8209 | static const char *const preen_msg[] = { |
8210 | N_("(NONE)"), /* 0 */ | 8210 | N_("(NONE)"), /* 0 */ |
8211 | N_("FIXED"), /* 1 */ | 8211 | N_("FIXED"), /* 1 */ |
8212 | N_("CLEARED"), /* 2 */ | 8212 | N_("CLEARED"), /* 2 */ |
diff --git a/e2fsprogs/old_e2fsprogs/e2p/ostype.c b/e2fsprogs/old_e2fsprogs/e2p/ostype.c index 0e111d408..1abe2ba91 100644 --- a/e2fsprogs/old_e2fsprogs/e2p/ostype.c +++ b/e2fsprogs/old_e2fsprogs/e2p/ostype.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <string.h> | 12 | #include <string.h> |
13 | #include <stdlib.h> | 13 | #include <stdlib.h> |
14 | 14 | ||
15 | static const char * const os_tab[] = | 15 | static const char *const os_tab[] = |
16 | { "Linux", | 16 | { "Linux", |
17 | "Hurd", | 17 | "Hurd", |
18 | "Masix", | 18 | "Masix", |
@@ -42,7 +42,7 @@ char *e2p_os2string(int os_type) | |||
42 | */ | 42 | */ |
43 | int e2p_string2os(char *str) | 43 | int e2p_string2os(char *str) |
44 | { | 44 | { |
45 | const char * const *cpp; | 45 | const char *const *cpp; |
46 | int i = 0; | 46 | int i = 0; |
47 | 47 | ||
48 | for (cpp = os_tab; *cpp; cpp++, i++) { | 48 | for (cpp = os_tab; *cpp; cpp++, i++) { |
diff --git a/e2fsprogs/old_e2fsprogs/fsck.c b/e2fsprogs/old_e2fsprogs/fsck.c index cf398079c..261783726 100644 --- a/e2fsprogs/old_e2fsprogs/fsck.c +++ b/e2fsprogs/old_e2fsprogs/fsck.c | |||
@@ -115,7 +115,7 @@ struct fsck_instance { | |||
115 | * Required for the uber-silly devfs /dev/ide/host1/bus2/target3/lun3 | 115 | * Required for the uber-silly devfs /dev/ide/host1/bus2/target3/lun3 |
116 | * pathames. | 116 | * pathames. |
117 | */ | 117 | */ |
118 | static const char * const devfs_hier[] = { | 118 | static const char *const devfs_hier[] = { |
119 | "host", "bus", "target", "lun", 0 | 119 | "host", "bus", "target", "lun", 0 |
120 | }; | 120 | }; |
121 | #endif | 121 | #endif |
@@ -124,7 +124,7 @@ static char *base_device(const char *device) | |||
124 | { | 124 | { |
125 | char *str, *cp; | 125 | char *str, *cp; |
126 | #ifdef CONFIG_FEATURE_DEVFS | 126 | #ifdef CONFIG_FEATURE_DEVFS |
127 | const char * const *hier; | 127 | const char *const *hier; |
128 | const char *disk; | 128 | const char *disk; |
129 | int len; | 129 | int len; |
130 | #endif | 130 | #endif |
@@ -226,7 +226,7 @@ errout: | |||
226 | } | 226 | } |
227 | 227 | ||
228 | 228 | ||
229 | static const char * const ignored_types[] = { | 229 | static const char *const ignored_types[] = { |
230 | "ignore", | 230 | "ignore", |
231 | "iso9660", | 231 | "iso9660", |
232 | "nfs", | 232 | "nfs", |
@@ -238,7 +238,7 @@ static const char * const ignored_types[] = { | |||
238 | NULL | 238 | NULL |
239 | }; | 239 | }; |
240 | 240 | ||
241 | static const char * const really_wanted[] = { | 241 | static const char *const really_wanted[] = { |
242 | "minix", | 242 | "minix", |
243 | "ext2", | 243 | "ext2", |
244 | "ext3", | 244 | "ext3", |