From 7c7df21cdcc77f9249f45f9cdf31766dedd8837a Mon Sep 17 00:00:00 2001 From: Paul Tucker Date: Mon, 24 Apr 2000 06:39:11 +0000 Subject: [PATCH] add casts on xgrab calls --- harbour/contrib/libnf/descend.c | 2 +- harbour/contrib/libnf/getenvrn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/harbour/contrib/libnf/descend.c b/harbour/contrib/libnf/descend.c index 6f3a29a270..45d04354d4 100644 --- a/harbour/contrib/libnf/descend.c +++ b/harbour/contrib/libnf/descend.c @@ -77,7 +77,7 @@ HB_FUNC( FT_DESCEND) { uiLen = hb_itemSize( iP ); - pDescend = hb_xgrab( uiLen ); + pDescend = ( char *) hb_xgrab( uiLen ); hb_itemCopyC( iP, pDescend, uiLen ); diff --git a/harbour/contrib/libnf/getenvrn.c b/harbour/contrib/libnf/getenvrn.c index 7e6de1d60d..e3c5797a20 100644 --- a/harbour/contrib/libnf/getenvrn.c +++ b/harbour/contrib/libnf/getenvrn.c @@ -141,7 +141,7 @@ HB_FUNC(FT_GETE) buffsize++; // now allocate that much memory and make sure 1st byte is a nul - buffer = hb_xalloc(buffsize); + buffer = ( char * ) hb_xalloc(buffsize); strcpy(buffer,"\0"); }