Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > by-pkgid > 9383e745e23602bc45f9c92184feea59 > files > 61

gfs2-utils-0.1.62-28.el5.src.rpm

commit 7ccf5c0c60ff29fc6e8a1ef0fea01d510f2df79b
Author: Bob Peterson <bob@krishna.(none)>
Date:   Wed Feb 17 13:25:42 2010 -0600

    Fix error where write_journal return code should be ignored
    
    This patch ignores the return code from write_journal.  The
    function returns an int value upstream, but doesn't in RHEL5.x
    so this fixes a compile error.
    
    rhbz#455300

diff --git a/gfs2/fsck/fs_recovery.c b/gfs2/fsck/fs_recovery.c
index d5ccb75..654556c 100644
--- a/gfs2/fsck/fs_recovery.c
+++ b/gfs2/fsck/fs_recovery.c
@@ -553,9 +553,9 @@ out:
 	log_info( _("jid=%u: Failed\n"), j);
 reinit:
 	if (query( _("Do you want to clear the journal instead? (y/n)")))
-		error = write_journal(sdp, sdp->md.journal[j], j,
-				      sdp->md.journal[j]->i_di.di_size /
-				      sdp->sd_sb.sb_bsize);
+		write_journal(sdp, sdp->md.journal[j], j,
+			      sdp->md.journal[j]->i_di.di_size /
+			      sdp->sd_sb.sb_bsize);
 	else
 		log_err( _("jid=%u: journal not cleared.\n"), j);
 	return error;
diff --git a/gfs2/fsck/inode_hash.c b/gfs2/fsck/inode_hash.c
index b23fe08..8086abb 100644
--- a/gfs2/fsck/inode_hash.c
+++ b/gfs2/fsck/inode_hash.c
@@ -11,6 +11,7 @@
 *******************************************************************************
 ******************************************************************************/
 
+#include <string.h>
 #include <stdint.h>
 #include <unistd.h>
 #include <libintl.h>
diff --git a/gfs2/fsck/pass1b.c b/gfs2/fsck/pass1b.c
index 5ad1e08..af814ae 100644
--- a/gfs2/fsck/pass1b.c
+++ b/gfs2/fsck/pass1b.c
@@ -13,6 +13,7 @@
 
 #include <inttypes.h>
 #include <linux_endian.h>
+#include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>