fix building against mhash 0.9.9; from maintainer Giovanni Bechis

This commit is contained in:
naddy 2008-09-12 14:28:06 +00:00
parent d17b2a40cc
commit 2c3ac8569e

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_MHashPP_cc,v 1.1 2008/09/12 14:28:06 naddy Exp $
--- src/MHashPP.cc.orig Fri Sep 12 16:24:21 2008
+++ src/MHashPP.cc Fri Sep 12 16:24:38 2008
@@ -120,7 +120,7 @@ std::string MHashPP::getAlgorithmName ()
std::string MHashPP::getAlgorithmName (hashid id)
{
- char *name = mhash_get_hash_name (id) ;
+ char *name = (char *)mhash_get_hash_name (id) ;
std::string retval ;
if (name == NULL) {
retval = std::string ("<algorithm not found>") ;