From 6156673ff39d56d2dfdf13341570276e09b08d93 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Sat, 19 Feb 2011 14:41:49 +0000 Subject: [PATCH] 2011-02-19 15:41 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/hbsocket.c ! added missing casting for C++ mode --- harbour/ChangeLog | 4 ++++ harbour/src/rtl/hbsocket.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index cf047f70e6..0ba10314f3 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,10 @@ The license applies to all entries newer than 2009-04-28. */ +2011-02-19 15:41 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/rtl/hbsocket.c + ! added missing casting for C++ mode + 2011-02-19 10:16 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * utils/hbmk2/hbmk2.prg ! Deleted local version of HB_FNAMEDIR(). diff --git a/harbour/src/rtl/hbsocket.c b/harbour/src/rtl/hbsocket.c index 57be02e30e..7679bf1f96 100644 --- a/harbour/src/rtl/hbsocket.c +++ b/harbour/src/rtl/hbsocket.c @@ -3094,7 +3094,7 @@ char * hb_socketGetHostName( const void * pSockAddr, unsigned len ) int iResult; hb_vmUnlock(); - iResult = getnameinfo( pSockAddr, len, szHost, NI_MAXHOST, NULL, 0, 0 ); + iResult = getnameinfo( ( const struct sockaddr * ) pSockAddr, len, szHost, NI_MAXHOST, NULL, 0, 0 ); hb_vmLock(); if( iResult == 0 ) szResult = hb_strdup( szHost );