diff --git a/harbour/ChangeLog b/harbour/ChangeLog index d13cc7df34..a9d2b88d82 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,12 @@ 2002-12-01 23:12 UTC+0100 Foo Bar */ +2003-10-12 17:15 UTC-0500 David G. Holm + + * utils/hbver/hbverfix.c + ! Use the standard ENOENT instead of the DOS-centric ENOFILE. + ! Resolved three print format warnings. + 2003-11-12 13:35 UTC+0200 Chen Kedem * doc/dirstruc.txt + Add a lines for source/rdd/dbfdbt, source/rdd/dbffpt, utils/hbver diff --git a/harbour/utils/hbver/hbverfix.c b/harbour/utils/hbver/hbverfix.c index 89a3009d89..6bbaf2c26c 100644 --- a/harbour/utils/hbver/hbverfix.c +++ b/harbour/utils/hbver/hbverfix.c @@ -210,7 +210,7 @@ int main( int argc, char * argv[] ) { switch( errno ) { - case ENOFILE: + case ENOENT: fprintf( stderr, "\nThis program needs to be run from the directory with the %s file.\n", cszChangeLogName ); return 3; default: @@ -227,7 +227,7 @@ int main( int argc, char * argv[] ) perror( szErrBuf ); return 5; } - if( iDebugLevel > 0 ) fprintf( stderr, "\n==> %u <==> %s <==", strlen( szInputBuffer ), szInputBuffer ); + if( iDebugLevel > 0 ) fprintf( stderr, "\n==> %u <==> %s <==", ( unsigned ) strlen( szInputBuffer ), szInputBuffer ); if( ! bFoundID ) { char * szID = strstr( szInputBuffer, "$Id: " ); @@ -292,13 +292,13 @@ int main( int argc, char * argv[] ) { sprintf( szErrBuf, "Reading from %s", cszVersionName ); fgets( szInputBuffer, MAX_BUF_LEN, fhVersion ); - if( iDebugLevel > 0 ) fprintf( stderr, "\n==> %u <==> %s <==", strlen( szInputBuffer ), szInputBuffer ); + if( iDebugLevel > 0 ) fprintf( stderr, "\n==> %u <==> %s <==", ( unsigned ) strlen( szInputBuffer ), szInputBuffer ); if( ferror( fhVersion ) ) { perror( szErrBuf ); return 9; } - if( iDebugLevel > 0 ) fprintf( stderr, "\n==> %u <==> %s <==", strlen( szInputBuffer ), szInputBuffer ); + if( iDebugLevel > 0 ) fprintf( stderr, "\n==> %u <==> %s <==", ( unsigned ) strlen( szInputBuffer ), szInputBuffer ); if( cIncrement == 'v' && strncmp( szInputBuffer, cszMajorVersion, strlen( cszMajorVersion ) ) == 0 ) { szIncrementNumber( szInputBuffer, strlen( cszMajorVersion ) );