Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin appease gcc -Wuninitialized
details: https://anonhg.NetBSD.org/src/rev/456a86278812
branches: trunk
changeset: 581470:456a86278812
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jun 02 00:38:41 2005 +0000
description:
appease gcc -Wuninitialized
diffstat:
sbin/fsck_ffs/dir.c | 8 ++++----
sbin/fsck_ffs/inode.c | 6 +++---
sbin/fsck_ffs/setup.c | 8 ++++----
sbin/fsdb/fsdb.c | 8 ++++----
4 files changed, 15 insertions(+), 15 deletions(-)
diffs (121 lines):
diff -r 8438140fdc77 -r 456a86278812 sbin/fsck_ffs/dir.c
--- a/sbin/fsck_ffs/dir.c Thu Jun 02 00:15:02 2005 +0000
+++ b/sbin/fsck_ffs/dir.c Thu Jun 02 00:38:41 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dir.c,v 1.43 2005/01/20 15:29:40 xtraeme Exp $ */
+/* $NetBSD: dir.c,v 1.44 2005/06/02 00:38:41 lukem Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)dir.c 8.8 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: dir.c,v 1.43 2005/01/20 15:29:40 xtraeme Exp $");
+__RCSID("$NetBSD: dir.c,v 1.44 2005/06/02 00:38:41 lukem Exp $");
#endif
#endif /* not lint */
@@ -678,8 +678,8 @@
#else
char firstblk[APPLEUFS_DIRBLKSIZ];
#endif
- struct ufs1_dinode *dp1;
- struct ufs2_dinode *dp2;
+ struct ufs1_dinode *dp1 = NULL;
+ struct ufs2_dinode *dp2 = NULL;
if (is_ufs2)
dp2 = &dp->dp2;
diff -r 8438140fdc77 -r 456a86278812 sbin/fsck_ffs/inode.c
--- a/sbin/fsck_ffs/inode.c Thu Jun 02 00:15:02 2005 +0000
+++ b/sbin/fsck_ffs/inode.c Thu Jun 02 00:38:41 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: inode.c,v 1.53 2005/04/30 20:29:56 christos Exp $ */
+/* $NetBSD: inode.c,v 1.54 2005/06/02 00:38:41 lukem Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)inode.c 8.8 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: inode.c,v 1.53 2005/04/30 20:29:56 christos Exp $");
+__RCSID("$NetBSD: inode.c,v 1.54 2005/06/02 00:38:41 lukem Exp $");
#endif
#endif /* not lint */
@@ -688,7 +688,7 @@
time_t t;
struct cg *cgp = cgrp;
int cg;
- struct inostat *info;
+ struct inostat *info = NULL;
if (request == 0)
request = ROOTINO;
diff -r 8438140fdc77 -r 456a86278812 sbin/fsck_ffs/setup.c
--- a/sbin/fsck_ffs/setup.c Thu Jun 02 00:15:02 2005 +0000
+++ b/sbin/fsck_ffs/setup.c Thu Jun 02 00:38:41 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: setup.c,v 1.75 2005/01/19 17:33:59 xtraeme Exp $ */
+/* $NetBSD: setup.c,v 1.76 2005/06/02 00:38:41 lukem Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)setup.c 8.10 (Berkeley) 5/9/95";
#else
-__RCSID("$NetBSD: setup.c,v 1.75 2005/01/19 17:33:59 xtraeme Exp $");
+__RCSID("$NetBSD: setup.c,v 1.76 2005/06/02 00:38:41 lukem Exp $");
#endif
#endif /* not lint */
@@ -84,7 +84,7 @@
{
long cg, size, asked, i, j;
long bmapsize;
- struct disklabel *lp;
+ struct disklabel *lp = NULL;
off_t sizepb;
struct stat statb;
struct fs proto;
@@ -640,7 +640,7 @@
static int
readsb(int listerr)
{
- daddr_t super;
+ daddr_t super = 0;
struct fs *fs;
int i;
diff -r 8438140fdc77 -r 456a86278812 sbin/fsdb/fsdb.c
--- a/sbin/fsdb/fsdb.c Thu Jun 02 00:15:02 2005 +0000
+++ b/sbin/fsdb/fsdb.c Thu Jun 02 00:38:41 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fsdb.c,v 1.31 2005/02/05 14:26:05 xtraeme Exp $ */
+/* $NetBSD: fsdb.c,v 1.32 2005/06/02 00:47:42 lukem Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: fsdb.c,v 1.31 2005/02/05 14:26:05 xtraeme Exp $");
+__RCSID("$NetBSD: fsdb.c,v 1.32 2005/06/02 00:47:42 lukem Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -499,8 +499,8 @@
CMDFUNCSTART(findblk)
{
ino_t inum, inosused;
- uint32_t *wantedblk32;
- uint64_t *wantedblk64;
+ uint32_t *wantedblk32 = NULL;
+ uint64_t *wantedblk64 = NULL;
struct cg *cgp = cgrp;
int i, c;
Home |
Main Index |
Thread Index |
Old Index