diff options
author | brian m. carlson <sandals@crustytoothpaste.net> | 2018-02-01 03:18:47 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-02-02 20:28:41 +0100 |
commit | 4d2735005a6512c4dae8b9ed892640db91351dff (patch) | |
tree | 3928da1bf2ca8adfff3324da70cceeadc4524ebf /csum-file.h | |
parent | csum-file: rename sha1file to hashfile (diff) | |
download | git-4d2735005a6512c4dae8b9ed892640db91351dff.tar.xz git-4d2735005a6512c4dae8b9ed892640db91351dff.zip |
csum-file: abstract uses of SHA-1
Convert several direct uses of SHA-1 to use the_hash_algo instead.
Convert one use of the constant 20 as well.
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'csum-file.h')
-rw-r--r-- | csum-file.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/csum-file.h b/csum-file.h index ceb3e5712d..992e5c0141 100644 --- a/csum-file.h +++ b/csum-file.h @@ -8,7 +8,7 @@ struct hashfile { int fd; int check_fd; unsigned int offset; - git_SHA_CTX ctx; + git_hash_ctx ctx; off_t total; struct progress *tp; const char *name; @@ -20,7 +20,7 @@ struct hashfile { /* Checkpoint */ struct hashfile_checkpoint { off_t offset; - git_SHA_CTX ctx; + git_hash_ctx ctx; }; extern void hashfile_checkpoint(struct hashfile *, struct hashfile_checkpoint *); |