diff options
Diffstat (limited to 'e2fsprogs/e2p/hashstr.c')
-rw-r--r-- | e2fsprogs/e2p/hashstr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/e2fsprogs/e2p/hashstr.c b/e2fsprogs/e2p/hashstr.c index 7c0552f09..c4b3f9fd5 100644 --- a/e2fsprogs/e2p/hashstr.c +++ b/e2fsprogs/e2p/hashstr.c | |||
@@ -21,7 +21,7 @@ struct hash { | |||
21 | const char *string; | 21 | const char *string; |
22 | }; | 22 | }; |
23 | 23 | ||
24 | static struct hash hash_list[] = { | 24 | static const struct hash hash_list[] = { |
25 | { EXT2_HASH_LEGACY, "legacy" }, | 25 | { EXT2_HASH_LEGACY, "legacy" }, |
26 | { EXT2_HASH_HALF_MD4, "half_md4" }, | 26 | { EXT2_HASH_HALF_MD4, "half_md4" }, |
27 | { EXT2_HASH_TEA, "tea" }, | 27 | { EXT2_HASH_TEA, "tea" }, |
@@ -30,7 +30,7 @@ static struct hash hash_list[] = { | |||
30 | 30 | ||
31 | const char *e2p_hash2string(int num) | 31 | const char *e2p_hash2string(int num) |
32 | { | 32 | { |
33 | struct hash *p; | 33 | const struct hash *p; |
34 | static char buf[20]; | 34 | static char buf[20]; |
35 | 35 | ||
36 | for (p = hash_list; p->string; p++) { | 36 | for (p = hash_list; p->string; p++) { |
@@ -46,7 +46,7 @@ const char *e2p_hash2string(int num) | |||
46 | */ | 46 | */ |
47 | int e2p_string2hash(char *string) | 47 | int e2p_string2hash(char *string) |
48 | { | 48 | { |
49 | struct hash *p; | 49 | const struct hash *p; |
50 | char *eptr; | 50 | char *eptr; |
51 | int num; | 51 | int num; |
52 | 52 | ||