From e3efbb665212b0e45e682edf7023c9dc0b78bfad Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Sat, 29 Oct 2011 23:35:28 +0000 Subject: [PATCH] 2011-10-30 01:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/hbdyn.c * added dummy assignment to pacify warning * harbour/src/rtl/hbsocket.c * added workaround for EREFUSED == ECONNREFUSED. It has to be tested with different OS-es --- harbour/ChangeLog | 8 ++++++++ harbour/src/rtl/hbdyn.c | 1 + harbour/src/rtl/hbsocket.c | 2 ++ 3 files changed, 11 insertions(+) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3241342966..3cb6c946dd 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,14 @@ The license applies to all entries newer than 2009-04-28. */ +2011-10-30 01:35 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/rtl/hbdyn.c + * added dummy assignment to pacify warning + + * harbour/src/rtl/hbsocket.c + * added workaround for EREFUSED == ECONNREFUSED. + It has to be tested with different OS-es + 2011-10-29 01:53 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbziparc/ziparc.prg % minor optimization to last change. checkme. diff --git a/harbour/src/rtl/hbdyn.c b/harbour/src/rtl/hbdyn.c index b2032fa659..5e6fad80e1 100644 --- a/harbour/src/rtl/hbdyn.c +++ b/harbour/src/rtl/hbdyn.c @@ -476,6 +476,7 @@ typedef struct static void hb_u32par( PHB_ITEM pParam, PHB_DYNARG pArg, HB_U32 * r1, HB_U32 * r2, HB_BOOL * b64 ) { *b64 = HB_FALSE; + *r2 = 0; switch( pArg->iType ) { diff --git a/harbour/src/rtl/hbsocket.c b/harbour/src/rtl/hbsocket.c index b1b1f762b6..65a4285c23 100644 --- a/harbour/src/rtl/hbsocket.c +++ b/harbour/src/rtl/hbsocket.c @@ -1289,9 +1289,11 @@ static void hb_socketSetOsError( int err ) break; #endif #if defined( EREFUSED ) +# if EREFUSED != ECONNREFUSED case EREFUSED: uiErr = HB_SOCKET_ERR_REFUSED; break; +# endif #endif /* #if defined( TRY_AGAIN )