Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libukfs fix warning whine
details: https://anonhg.NetBSD.org/src/rev/8ca6b20b2ba5
branches: trunk
changeset: 747981:8ca6b20b2ba5
user: pooka <pooka%NetBSD.org@localhost>
date: Wed Oct 07 20:53:38 2009 +0000
description:
fix warning whine
diffstat:
lib/libukfs/ukfs.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r c9af44aa6489 -r 8ca6b20b2ba5 lib/libukfs/ukfs.c
--- a/lib/libukfs/ukfs.c Wed Oct 07 20:51:00 2009 +0000
+++ b/lib/libukfs/ukfs.c Wed Oct 07 20:53:38 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ukfs.c,v 1.38 2009/10/07 20:51:00 pooka Exp $ */
+/* $NetBSD: ukfs.c,v 1.39 2009/10/07 20:53:38 pooka Exp $ */
/*
* Copyright (c) 2007, 2008, 2009 Antti Kantee. All Rights Reserved.
@@ -323,11 +323,15 @@
const char *mountpath, int mntflags, void *arg, size_t alen)
{
struct ukfs *fs = NULL;
- int rv = 0, devfd;
+ int rv = 0, devfd = -1;
uint64_t devoff, devsize;
int mounted = 0;
int regged = 0;
+ /* XXX: gcc whine */
+ devoff = 0;
+ devsize = 0;
+
if (partition != UKFS_PARTITION_NA)
process_diskdevice(devpath, partition, mntflags & MNT_RDONLY,
&devfd, &devoff, &devsize);
Home |
Main Index |
Thread Index |
Old Index