[PATCH] nilfs-utils: kill gcc warning on fstab.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Will kill the following gcc warning:

fstab.c: In function ¡Æpdate_mtab¡Ç
fstab.c:573: warning: ignoring return value of ¡Æhown¡Ç declared with attribute warn_unused_result

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@xxxxxxxxxxxxx>
---
 sbin/mount/fstab.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/sbin/mount/fstab.c b/sbin/mount/fstab.c
index 2921915..c69502f 100644
--- a/sbin/mount/fstab.c
+++ b/sbin/mount/fstab.c
@@ -480,6 +480,7 @@ update_mtab (const char *dir, struct my_mntent *instead) {
 	const char *fnam = MOUNTED;
 	struct mntentchn mtabhead;	/* dummy */
 	struct mntentchn *mc, *mc0, *absent = NULL;
+	int ret;
 
 	if (mtab_does_not_exist() || mtab_is_a_symlink())
 		return;
@@ -570,7 +571,7 @@ update_mtab (const char *dir, struct my_mntent *instead) {
 	   */
 	    struct stat sbuf;
 	    if (stat (MOUNTED, &sbuf) == 0)
-		chown (MOUNTED_TEMP, sbuf.st_uid, sbuf.st_gid);
+		ret = chown(MOUNTED_TEMP, sbuf.st_uid, sbuf.st_gid);
 	}
 
 	/* rename mtemp to mtab */
-- 
1.6.6.2

--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux