mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
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:
committed by
Mark Cave-Ayland
parent
d698673c6d
commit
df3132e620
@@ -216,7 +216,7 @@ hfsp_files_open( hfsp_info_t *mi )
|
|||||||
if (volume_open(mi->vol, fd)) {
|
if (volume_open(mi->vol, fd)) {
|
||||||
free( path );
|
free( path );
|
||||||
close_io( fd );
|
close_io( fd );
|
||||||
RET( -1 );
|
RET( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
mi->hfspfile = malloc( sizeof(hfsp_file_t) );
|
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 ) )
|
if( !search_files(&(mi->hfspfile->rec), 0, match_path, path, mi->hfspfile ) )
|
||||||
RET ( -1 );
|
RET ( -1 );
|
||||||
|
|
||||||
RET ( 0 );
|
RET ( -1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ( -- ) */
|
/* ( -- ) */
|
||||||
@@ -383,11 +383,11 @@ hfsp_files_load( hfsp_info_t *mi )
|
|||||||
RET ( act_count );
|
RET ( act_count );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ( -- str len ) */
|
/* ( -- cstr ) */
|
||||||
static void
|
static void
|
||||||
hfsp_files_get_fstype( hfsp_info_t *mi )
|
hfsp_files_get_fstype( hfsp_info_t *mi )
|
||||||
{
|
{
|
||||||
push_str("HFS+");
|
PUSH( (ucell)strdup("HFS+") );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ( -- cstr ) */
|
/* ( -- cstr ) */
|
||||||
|
|||||||
Reference in New Issue
Block a user