dedup

deduplicating backup program
git clone git://git.2f30.org/dedup.git
Log | Files | Refs | README | LICENSE

commit da4b4d0cdd9238ff2993c3957d0d16a2c9718ae9
parent 97d304696333ad9b25d52e7cd9e02e7e2eee6f64
Author: sin <sin@2f30.org>
Date:   Mon, 20 May 2019 13:18:26 +0300

Use uchar instead of uint8_t

Diffstat:
Mbcompress.c | 2+-
Mbencrypt.c | 2+-
Mbstorage.c | 2+-
3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/bcompress.c b/bcompress.c @@ -57,7 +57,7 @@ struct cctx { /* Compression descriptor */ struct cd { uint16_t type; /* compression algorithm type */ - uint8_t reserved[6]; + unsigned char reserved[6]; uint64_t size; }; diff --git a/bencrypt.c b/bencrypt.c @@ -55,7 +55,7 @@ struct ectx { /* Encryption descriptor */ struct ed { uint16_t type; /* encryption algorithm type */ - uint8_t reserved[6]; /* should be set to 0 when writing */ + unsigned char reserved[6]; /* should be set to 0 when writing */ uint64_t size; /* size of encrypted block */ unsigned char nonce[crypto_aead_xchacha20poly1305_ietf_NPUBBYTES]; }; diff --git a/bstorage.c b/bstorage.c @@ -78,7 +78,7 @@ struct bhdr { /* Block descriptor */ struct bd { uint16_t type; /* BDTYPE */ - uint8_t reserved[6]; /* should be set to 0 when writing */ + unsigned char reserved[6]; /* should be set to 0 when writing */ uint64_t offset; /* block offset */ uint64_t size; /* block size */ uint64_t refcnt; /* reference count of block, 0 if block is removed */