From e8475bbd5b0c5505bb0536929e89efc8b0d4da5c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 13 Feb 2006 18:00:08 +0000 Subject: [PATCH] * Use a union. --- src/libutil/hash.cc | 3 +-- 1 file changed, 1 insertion(+), 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 - Hash::Hash() { type = htUnknown; @@ -198,7 +197,7 @@ bool isHash(const string & s) } -struct Ctx +union Ctx { md5_ctx md5; sha_ctx sha1;