Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2009-08-18 04:18:23 +0400
committerJunio C Hamano <gitster@pobox.com>2009-08-18 23:26:01 +0400
commitd5f6a96fa4792f6143d06d9c0b572a96d7235305 (patch)
tree35ce7257d0e1a4c68aa7ece581437e59740f53e1 /block-sha1
parenta12218572f2875e91b6c3c12559b076c4949a675 (diff)
block-sha1: make the size member first in the context struct
This is a 64-bit value, hence having it first provides a better alignment. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'block-sha1')
-rw-r--r--block-sha1/sha1.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/block-sha1/sha1.h b/block-sha1/sha1.h
index c1ae74d3da..81abfd4c1c 100644
--- a/block-sha1/sha1.h
+++ b/block-sha1/sha1.h
@@ -5,9 +5,9 @@
*/
typedef struct {
+ unsigned long long size;
unsigned int H[5];
unsigned int W[16];
- unsigned long long size;
} blk_SHA_CTX;
void blk_SHA1_Init(blk_SHA_CTX *ctx);