Archived
1
0
Fork 0

hash: Replace struct with a primitive type for hash values.

Remove the struct hash_entry and define a new type for hash values.
Most likely we will only need one member in this struct. and instead
of just using unsinged int. let's name a new type for clarity.
This commit is contained in:
Henrik Hautakoski 2012-08-22 15:16:27 +02:00
parent 569d0167d8
commit 223706d52f
3 changed files with 23 additions and 25 deletions

View file

@ -44,7 +44,7 @@ struct header {
};
union hash {
unsigned int index;
hash_t index;
unsigned char sha1[20];
};