commit 3c2969281c3ae0cfae132373efd20210236abf2f
parent c5abbf4d7c2a0129c74f15540e47d58cbf09fb67
Author: sin <sin@2f30.org>
Date: Fri, 12 Apr 2019 13:53:32 +0100
Use an invalid type for the null entry
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/compress.c b/compress.c
@@ -47,7 +47,7 @@ static struct algomap {
{ .name = "none", .type = COMPR_NONE },
{ .name = "lz4", .type = COMPR_LZ4 },
{ .name = "snappy", .type = COMPR_SNAPPY },
- { .name = NULL, },
+ { .name = NULL, .type = -1 },
};
int
diff --git a/hash.c b/hash.c
@@ -43,7 +43,7 @@ static struct algomap {
{ .name = "blake2bp", .type = HASH_BLAKE2BP },
{ .name = "blake2s", .type = HASH_BLAKE2S },
{ .name = "blake2sp", .type = HASH_BLAKE2SP },
- { .name = NULL },
+ { .name = NULL, .type = -1 },
};
int