tUse an invalid type for the null entry - dedup - deduplicating backup program
(HTM) git clone git://git.z3bra.org/dedup.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 3c2969281c3ae0cfae132373efd20210236abf2f
(DIR) parent c5abbf4d7c2a0129c74f15540e47d58cbf09fb67
(HTM) Author: sin <sin@2f30.org>
Date: Fri, 12 Apr 2019 13:53:32 +0100
Use an invalid type for the null entry
Diffstat:
M compress.c | 2 +-
M hash.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/compress.c b/compress.c
t@@ -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
(DIR) diff --git a/hash.c b/hash.c
t@@ -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