Fix a couple of incorrect error codes in hfsp_files_open(), and also revert the filesystem type return value to a cstr to

maintain the existing API.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>


git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@811 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Mark Cave-Ayland
2010-07-03 23:22:21 +00:00
committed by Mark Cave-Ayland
parent d698673c6d
commit df3132e620

View File

@@ -216,7 +216,7 @@ hfsp_files_open( hfsp_info_t *mi )
if (volume_open(mi->vol, fd)) {
free( path );
close_io( fd );
RET( -1 );
RET( 0 );
}
mi->hfspfile = malloc( sizeof(hfsp_file_t) );
@@ -244,7 +244,7 @@ hfsp_files_open( hfsp_info_t *mi )
if( !search_files(&(mi->hfspfile->rec), 0, match_path, path, mi->hfspfile ) )
RET ( -1 );
RET ( 0 );
RET ( -1 );
}
/* ( -- ) */
@@ -383,11 +383,11 @@ hfsp_files_load( hfsp_info_t *mi )
RET ( act_count );
}
/* ( -- str len ) */
/* ( -- cstr ) */
static void
hfsp_files_get_fstype( hfsp_info_t *mi )
{
push_str("HFS+");
PUSH( (ucell)strdup("HFS+") );
}
/* ( -- cstr ) */