Module Name:    src
Committed By:   pooka
Date:           Wed Oct  7 20:53:38 UTC 2009

Modified Files:
        src/lib/libukfs: ukfs.c

Log Message:
fix warning whine


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/lib/libukfs/ukfs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libukfs/ukfs.c
diff -u src/lib/libukfs/ukfs.c:1.38 src/lib/libukfs/ukfs.c:1.39
--- src/lib/libukfs/ukfs.c:1.38	Wed Oct  7 20:51:00 2009
+++ src/lib/libukfs/ukfs.c	Wed Oct  7 20:53:38 2009
@@ -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);

Reply via email to