summaryrefslogtreecommitdiff
path: root/e2fsprogs/fsck.c
diff options
context:
space:
mode:
author"Vladimir N. Oleynik"2005-10-20 11:17:48 +0000
committer"Vladimir N. Oleynik"2005-10-20 11:17:48 +0000
commit1f0262bcdb352e9a75a4e5f48cd63d05714e2859 (patch)
treee191e1f4019e7b0daf47f9077e375588f77b3c6a /e2fsprogs/fsck.c
parent0fa9deda1706b19e5f42ed392483a582880aaca3 (diff)
downloadbusybox-1f0262bcdb352e9a75a4e5f48cd63d05714e2859.zip
busybox-1f0262bcdb352e9a75a4e5f48cd63d05714e2859.tar.gz
another more const
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 802d7fa..b7e25d6 100644
--- a/e2fsprogs/fsck.c
+++ b/e2fsprogs/fsck.c
@@ -116,7 +116,7 @@ struct fsck_instance {
* Required for the uber-silly devfs /dev/ide/host1/bus2/target3/lun3
* pathames.
*/
-static const char *devfs_hier[] = {
+static const char * const devfs_hier[] = {
"host", "bus", "target", "lun", 0
};
#endif
@@ -125,7 +125,8 @@ static char *base_device(const char *device)
{
char *str, *cp;
#ifdef CONFIG_FEATURE_DEVFS
- const char **hier, *disk;
+ const char * const *hier;
+ const char *disk;
int len;
#endif
@@ -866,9 +867,9 @@ struct fs_type_compile {
#define FS_TYPE_OPT 1
#define FS_TYPE_NEGOPT 2
-static const char *fs_type_syntax_error =
-N_("Either all or none of the filesystem types passed to -t must be prefixed\n"
- "with 'no' or '!'.\n");
+static const char fs_type_syntax_error[] =
+"Either all or none of the filesystem types passed to -t must be prefixed\n"
+ "with 'no' or '!'.";
static void compile_fs_type(char *fs_type, struct fs_type_compile *cmp)
{