Source-Changes-HG archive

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

[src/trunk]: src/sbin/dump_lfs be consistent in XXXGCC -Wuninitialized fixes ...



details:   https://anonhg.NetBSD.org/src/rev/43719f6d9690
branches:  trunk
changeset: 582132:43719f6d9690
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat Jun 18 01:33:16 2005 +0000

description:
be consistent in XXXGCC -Wuninitialized fixes ...

diffstat:

 sbin/dump_lfs/lfs_inode.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r ce3cc07d66b2 -r 43719f6d9690 sbin/dump_lfs/lfs_inode.c
--- a/sbin/dump_lfs/lfs_inode.c Fri Jun 17 23:53:21 2005 +0000
+++ b/sbin/dump_lfs/lfs_inode.c Sat Jun 18 01:33:16 2005 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: lfs_inode.c,v 1.10 2005/06/16 20:39:33 jmc Exp $ */
+/*      $NetBSD: lfs_inode.c,v 1.11 2005/06/18 01:33:16 lukem Exp $ */
 
 /*-
  * Copyright (c) 1980, 1991, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c      8.6 (Berkeley) 5/1/95";
 #else
-__RCSID("$NetBSD: lfs_inode.c,v 1.10 2005/06/16 20:39:33 jmc Exp $");
+__RCSID("$NetBSD: lfs_inode.c,v 1.11 2005/06/18 01:33:16 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -198,10 +198,11 @@
 static daddr_t
 lfs_bmap(struct lfs *fs, struct ufs1_dinode *idinode, daddr_t lbn)
 {
-       daddr_t residue;
-       daddr_t up = UNASSIGNED; /* XXGCC -Wunitialized sh3 */
+       daddr_t residue, up;
        int off=0;
        char bp[MAXBSIZE];
+
+       up = UNASSIGNED;        /* XXXGCC -Wunitialized [sh3] */
        
        if(lbn > 0 && lbn > lblkno(fs, idinode->di_size)) {
                return UNASSIGNED;



Home | Main Index | Thread Index | Old Index