From 932e4f99a60b59403cc13156927ae4b29e1df61c Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Thu, 18 Sep 2008 05:56:41 +0000 Subject: [PATCH] 2008-09-18 07:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/cdpapi.c * explicit casting to char * in 1-st strchr() parameter as workaround for wrong function prototype in DMC header files --- harbour/ChangeLog | 5 +++++ harbour/source/rtl/cdpapi.c | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index e93e8bee9f..c90cd29316 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,11 @@ 2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org) */ +2008-09-18 07:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/rtl/cdpapi.c + * explicit casting to char * in 1-st strchr() parameter as workaround + for wrong function prototype in DMC header files + 2008-09-18 07:21 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbthread.h * use assembler version of atomic inc/dec operation in all x86 based diff --git a/harbour/source/rtl/cdpapi.c b/harbour/source/rtl/cdpapi.c index 73a5079dbf..5b04e0b6ba 100644 --- a/harbour/source/rtl/cdpapi.c +++ b/harbour/source/rtl/cdpapi.c @@ -501,12 +501,12 @@ HB_EXPORT void hb_cdpTranslate( char *psz, PHB_CODEPAGE cdpIn, PHB_CODEPAGE cdpO { char * ptr; - ptr = strchr( cdpIn->CharsUpper, *psz ); + ptr = strchr( ( char * ) cdpIn->CharsUpper, *psz ); if( ptr ) *psz = cdpOut->CharsUpper[ ptr - cdpIn->CharsUpper ]; else { - ptr = strchr( cdpIn->CharsLower, *psz ); + ptr = strchr( ( char * ) cdpIn->CharsLower, *psz ); if( ptr ) *psz = cdpOut->CharsLower[ ptr - cdpIn->CharsLower ]; } @@ -543,12 +543,12 @@ HB_EXPORT void hb_cdpnTranslate( char *psz, PHB_CODEPAGE cdpIn, PHB_CODEPAGE cdp { char * ptr; - ptr = strchr( cdpIn->CharsUpper, *psz ); + ptr = strchr( ( char * ) cdpIn->CharsUpper, *psz ); if( ptr ) *psz = cdpOut->CharsUpper[ ptr - cdpIn->CharsUpper ]; else { - ptr = strchr( cdpIn->CharsLower, *psz ); + ptr = strchr( ( char * ) cdpIn->CharsLower, *psz ); if( ptr ) *psz = cdpOut->CharsLower[ ptr - cdpIn->CharsLower ]; }