Skip to content
Snippets Groups Projects
Commit e8475bbd authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Use a union.

parent 2d2e28d0
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment