summaryrefslogtreecommitdiff
path: root/e2fsprogs/e2p/hashstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'e2fsprogs/e2p/hashstr.c')
-rw-r--r--e2fsprogs/e2p/hashstr.c21
1 files changed, 10 insertions, 11 deletions
diff --git a/e2fsprogs/e2p/hashstr.c b/e2fsprogs/e2p/hashstr.c
index b257eb2..7c0552f 100644
--- a/e2fsprogs/e2p/hashstr.c
+++ b/e2fsprogs/e2p/hashstr.c
@@ -17,20 +17,20 @@
#include "e2p.h"
struct hash {
- int num;
- const char *string;
+ int num;
+ const char *string;
};
static struct hash hash_list[] = {
- { EXT2_HASH_LEGACY, "legacy" },
- { EXT2_HASH_HALF_MD4, "half_md4" },
- { EXT2_HASH_TEA, "tea" },
- { 0, 0 },
+ { EXT2_HASH_LEGACY, "legacy" },
+ { EXT2_HASH_HALF_MD4, "half_md4" },
+ { EXT2_HASH_TEA, "tea" },
+ { 0, 0 },
};
const char *e2p_hash2string(int num)
{
- struct hash *p;
+ struct hash *p;
static char buf[20];
for (p = hash_list; p->string; p++) {
@@ -46,9 +46,9 @@ const char *e2p_hash2string(int num)
*/
int e2p_string2hash(char *string)
{
- struct hash *p;
- char *eptr;
- int num;
+ struct hash *p;
+ char *eptr;
+ int num;
for (p = hash_list; p->string; p++) {
if (!strcasecmp(string, p->string)) {
@@ -67,4 +67,3 @@ int e2p_string2hash(char *string)
return -1;
return num;
}
-