aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/fsck.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/fsck.c')
-rw-r--r--e2fsprogs/fsck.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c
index 802d7fa86..b7e25d68a 100644
--- a/e2fsprogs/fsck.c
+++ b/e2fsprogs/fsck.c
@@ -116,7 +116,7 @@ struct fsck_instance {
116 * Required for the uber-silly devfs /dev/ide/host1/bus2/target3/lun3 116 * Required for the uber-silly devfs /dev/ide/host1/bus2/target3/lun3
117 * pathames. 117 * pathames.
118 */ 118 */
119static const char *devfs_hier[] = { 119static const char * const devfs_hier[] = {
120 "host", "bus", "target", "lun", 0 120 "host", "bus", "target", "lun", 0
121}; 121};
122#endif 122#endif
@@ -125,7 +125,8 @@ static char *base_device(const char *device)
125{ 125{
126 char *str, *cp; 126 char *str, *cp;
127#ifdef CONFIG_FEATURE_DEVFS 127#ifdef CONFIG_FEATURE_DEVFS
128 const char **hier, *disk; 128 const char * const *hier;
129 const char *disk;
129 int len; 130 int len;
130#endif 131#endif
131 132
@@ -866,9 +867,9 @@ struct fs_type_compile {
866#define FS_TYPE_OPT 1 867#define FS_TYPE_OPT 1
867#define FS_TYPE_NEGOPT 2 868#define FS_TYPE_NEGOPT 2
868 869
869static const char *fs_type_syntax_error = 870static const char fs_type_syntax_error[] =
870N_("Either all or none of the filesystem types passed to -t must be prefixed\n" 871"Either all or none of the filesystem types passed to -t must be prefixed\n"
871 "with 'no' or '!'.\n"); 872 "with 'no' or '!'.";
872 873
873static void compile_fs_type(char *fs_type, struct fs_type_compile *cmp) 874static void compile_fs_type(char *fs_type, struct fs_type_compile *cmp)
874{ 875{