From: Adam Dickmeiss Date: Wed, 11 Sep 2013 08:52:35 +0000 (+0200) Subject: Add unsigned char cast for YAZ 4 X-Git-Tag: v1.5.0~6 X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=commitdiff_plain;h=6fbe632bc43d693756170e5b799c942d6abbf883 Add unsigned char cast for YAZ 4 --- diff --git a/src/yaz-z-assoc.cpp b/src/yaz-z-assoc.cpp index 1663757..480074f 100644 --- a/src/yaz-z-assoc.cpp +++ b/src/yaz-z-assoc.cpp @@ -451,7 +451,11 @@ Z_ReferenceId* Z_Assoc::getRefID(char* str) Z_ReferenceId* id = NULL; if (str) - id = odr_create_Odr_oct(m_p->odr_out, str, strlen(str)); + id = odr_create_Odr_oct(m_p->odr_out, +#if YAZ_VERSIONL < 0x50000 + (unsigned char *) +#endif + str, strlen(str)); return id; } diff --git a/zlint/zlint.cpp b/zlint/zlint.cpp index b8b8d59..323a393 100644 --- a/zlint/zlint.cpp +++ b/zlint/zlint.cpp @@ -150,7 +150,11 @@ IPDU_Observer *Zlint::sessionNotify( Z_ReferenceId *Zlint::mk_refid(const char *buf, int len) { - return odr_create_Odr_oct(odr_encode(), buf, len); + return odr_create_Odr_oct(odr_encode(), +#if YAZ_VERSIONL < 0x50000 + (unsigned char *) +#endif + buf, len); } int Zlint::initResponseGetVersion(Z_InitResponse *init)