From 0c010ce2d17c43014f1f4879d166c8e0abdcb86e Mon Sep 17 00:00:00 2001 From: peter Date: Thu, 29 Oct 1998 09:44:12 +0000 Subject: error return assignment was less than ideal. Fix the part that caused warnings to be the same as the ffs code. Previously, any error from the UFS_UPDATE() call was lost (I think). --- sys/gnu/ext2fs/ext2_inode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/gnu/ext2fs') diff --git a/sys/gnu/ext2fs/ext2_inode.c b/sys/gnu/ext2fs/ext2_inode.c index b76410b..933d031 100644 --- a/sys/gnu/ext2fs/ext2_inode.c +++ b/sys/gnu/ext2fs/ext2_inode.c @@ -257,8 +257,8 @@ printf("ext2_truncate called %d to %d\n", VTOI(ovp)->i_number, length); for (i = NDADDR - 1; i > lastblock; i--) oip->i_db[i] = 0; oip->i_flag |= IN_CHANGE | IN_UPDATE; - if (error = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT)) - allerror = error; + allerror = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT); + /* * Having written the new inode to disk, save its new configuration * and put back the old block pointers long enough to process them. -- cgit v1.1