From 62a76f1c8090fc66b883da0a64d36f5a1f238e53 Mon Sep 17 00:00:00 2001 From: Paul Tucker Date: Sun, 5 Sep 1999 07:01:12 +0000 Subject: [PATCH] *** empty log message *** --- harbour/ChangeLog | 4 ++++ harbour/source/rtl/filesys.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index caff55abe6..d531907a27 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +19990905-02:47 EDT Paul Tucker + * source/rtl/filesys.c + * casts on access() and in HB_FILE + 19990904-23:35 EDT David G. Holm * include/hbver.h * Bumped revision from "a" to "b". diff --git a/harbour/source/rtl/filesys.c b/harbour/source/rtl/filesys.c index 1ed8ad1956..92325c4fa6 100644 --- a/harbour/source/rtl/filesys.c +++ b/harbour/source/rtl/filesys.c @@ -1054,7 +1054,7 @@ BOOL hb_fsFile ( BYTE * pFilename ) /* TODO: Check if F_OK is defined in all compilers */ #ifdef OS_UNIX_COMPATIBLE - is_file = ( access( pFilename, F_OK ) == 0 ); + is_file = ( access( (const char *)pFilename, F_OK ) == 0 ); #else @@ -1070,7 +1070,7 @@ BOOL hb_fsFile ( BYTE * pFilename ) #else - is_file = ( access( pFilename, 0 ) == 0 ); + is_file = ( access( (const char *)pFilename, 0 ) == 0 ); #endif @@ -1085,7 +1085,7 @@ HARBOUR HB_FILE( void ) { if( ISCHAR( 1 ) ) { - hb_retl( hb_fsFile( hb_parc( 1 ) ) ); + hb_retl( hb_fsFile( (BYTE *)hb_parc( 1 ) ) ); } else hb_retl( FALSE );