[OpenBIOS] [commit] r811 - trunk/openbios-devel/fs/hfsplus

repository service svn at openbios.org
Sun Jul 4 01:22:21 CEST 2010


Author: mcayland
Date: Sun Jul  4 01:22:21 2010
New Revision: 811
URL: http://tracker.coreboot.org/trac/openbios/changeset/811

Log:
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 at siriusit.co.uk>

Modified:
   trunk/openbios-devel/fs/hfsplus/hfsp_fs.c

Modified: trunk/openbios-devel/fs/hfsplus/hfsp_fs.c
==============================================================================
--- trunk/openbios-devel/fs/hfsplus/hfsp_fs.c	Sat Jul  3 21:02:43 2010	(r810)
+++ trunk/openbios-devel/fs/hfsplus/hfsp_fs.c	Sun Jul  4 01:22:21 2010	(r811)
@@ -216,7 +216,7 @@
 	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 @@
 	if( !search_files(&(mi->hfspfile->rec), 0, match_path, path, mi->hfspfile ) )
 		RET ( -1 );
 	
-	RET ( 0 );
+	RET ( -1 );
 }
 
 /* ( -- ) */
@@ -383,11 +383,11 @@
 	RET ( act_count );
 }
 
-/* ( -- str len ) */
+/* ( -- cstr ) */
 static void
 hfsp_files_get_fstype( hfsp_info_t *mi )
 {
-	push_str("HFS+");
+	PUSH( (ucell)strdup("HFS+") );
 }
 
 /* ( -- cstr ) */



More information about the OpenBIOS mailing list