summaryrefslogtreecommitdiff
path: root/scripts/hash_burn.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/hash_burn.c')
-rw-r--r--scripts/hash_burn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/hash_burn.c b/scripts/hash_burn.c
index 97eab0d84..0aa9bf121 100644
--- a/scripts/hash_burn.c
+++ b/scripts/hash_burn.c
@@ -43,8 +43,7 @@ int main(int argc, char *argv[])
limit = atoi(argv[2]);
}
- alg = enum_from_name(hash_algorithm_short_names, argv[1]);
- if (alg == -1)
+ if (!enum_from_name(hash_algorithm_short_names, argv[1], &alg))
{
fprintf(stderr, "unknown hash algorthm: %s\n", argv[1]);
return 1;