Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/smbfs FIx uninitialized variable warnings
details: https://anonhg.NetBSD.org/src/rev/f2ae08b0b419
branches: trunk
changeset: 554141:f2ae08b0b419
user: christos <christos%NetBSD.org@localhost>
date: Sat Oct 25 18:33:37 2003 +0000
description:
FIx uninitialized variable warnings
diffstat:
sys/fs/smbfs/smbfs_smb.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 2cb39558d9de -r f2ae08b0b419 sys/fs/smbfs/smbfs_smb.c
--- a/sys/fs/smbfs/smbfs_smb.c Sat Oct 25 18:31:59 2003 +0000
+++ b/sys/fs/smbfs/smbfs_smb.c Sat Oct 25 18:33:37 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: smbfs_smb.c,v 1.17 2003/04/07 19:35:39 jdolecek Exp $ */
+/* $NetBSD: smbfs_smb.c,v 1.18 2003/10/25 18:33:37 christos Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smbfs_smb.c,v 1.17 2003/04/07 19:35:39 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbfs_smb.c,v 1.18 2003/10/25 18:33:37 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1154,10 +1154,12 @@
fxsz = 64;
recsz = next ? next : fxsz + size;
break;
+ default:
#ifdef DIAGNOSTIC
- default:
panic("smbfs_findnextLM2: unexpected info level %d\n",
ctx->f_infolevel);
+#else
+ return EINVAL;
#endif
}
nmlen = min(size, SMB_MAXFNAMELEN);
Home |
Main Index |
Thread Index |
Old Index