aboutsummaryrefslogtreecommitdiff
path: root/e2fsprogs/fsck.c
diff options
context:
space:
mode:
authorvodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-10-20 11:17:48 +0000
committervodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-10-20 11:17:48 +0000
commitb18d17b1b35fb9a413b085512568c7f589d24b8b (patch)
treee191e1f4019e7b0daf47f9077e375588f77b3c6a /e2fsprogs/fsck.c
parent7dfd514f172c48039e71d235a0abb2160e9282be (diff)
downloadbusybox-w32-b18d17b1b35fb9a413b085512568c7f589d24b8b.tar.gz
busybox-w32-b18d17b1b35fb9a413b085512568c7f589d24b8b.tar.bz2
busybox-w32-b18d17b1b35fb9a413b085512568c7f589d24b8b.zip
another more const
git-svn-id: svn://busybox.net/trunk/busybox@11897 69ca8d6d-28ef-0310-b511-8ec308f3f277
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{