diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-02-13 18:00:08 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2006-02-13 18:00:08 +0000 |
commit | e8475bbd5b0c5505bb0536929e89efc8b0d4da5c (patch) | |
tree | 264b32b4bc408b7c35df267b4adbc9f2e57d5281 /src/libutil/hash.cc | |
parent | 2d2e28d02c18668856b7d55fad40cac4f875fa3e (diff) |
* Use a union.
Diffstat (limited to 'src/libutil/hash.cc')
-rw-r--r-- | src/libutil/hash.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libutil/hash.cc b/src/libutil/hash.cc index 71d4ba67e..6df75e956 100644 --- a/src/libutil/hash.cc +++ b/src/libutil/hash.cc @@ -14,7 +14,6 @@ extern "C" { #include <fcntl.h> - Hash::Hash() { type = htUnknown; @@ -198,7 +197,7 @@ bool isHash(const string & s) } -struct Ctx +union Ctx { md5_ctx md5; sha_ctx sha1; |