diff options
author | "Vladimir N. Oleynik" | 2005-10-20 11:17:48 +0000 |
---|---|---|
committer | "Vladimir N. Oleynik" | 2005-10-20 11:17:48 +0000 |
commit | 1f0262bcdb352e9a75a4e5f48cd63d05714e2859 (patch) | |
tree | e191e1f4019e7b0daf47f9077e375588f77b3c6a /e2fsprogs/e2p/hashstr.c | |
parent | 0fa9deda1706b19e5f42ed392483a582880aaca3 (diff) | |
download | busybox-1f0262bcdb352e9a75a4e5f48cd63d05714e2859.zip busybox-1f0262bcdb352e9a75a4e5f48cd63d05714e2859.tar.gz |
another more const
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 7c0552f..c4b3f9f 100644 --- a/e2fsprogs/e2p/hashstr.c +++ b/e2fsprogs/e2p/hashstr.c @@ -21,7 +21,7 @@ struct hash { const char *string; }; -static struct hash hash_list[] = { +static const struct hash hash_list[] = { { EXT2_HASH_LEGACY, "legacy" }, { EXT2_HASH_HALF_MD4, "half_md4" }, { EXT2_HASH_TEA, "tea" }, @@ -30,7 +30,7 @@ static struct hash hash_list[] = { const char *e2p_hash2string(int num) { - struct hash *p; + const struct hash *p; static char buf[20]; for (p = hash_list; p->string; p++) { @@ -46,7 +46,7 @@ const char *e2p_hash2string(int num) */ int e2p_string2hash(char *string) { - struct hash *p; + const struct hash *p; char *eptr; int num; |