Module Name: src
Committed By: macallan
Date: Tue Jul 27 14:04:47 UTC 2010
Modified Files:
src/tests/fs/nfs/nfsservice: mountd.c nfsd.c
Log Message:
initialize a few variables to shut up compiler warnings
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/fs/nfs/nfsservice/mountd.c
cvs rdiff -u -r1.1 -r1.2 src/tests/fs/nfs/nfsservice/nfsd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/fs/nfs/nfsservice/mountd.c
diff -u src/tests/fs/nfs/nfsservice/mountd.c:1.2 src/tests/fs/nfs/nfsservice/mountd.c:1.3
--- src/tests/fs/nfs/nfsservice/mountd.c:1.2 Mon Jul 26 19:24:35 2010
+++ src/tests/fs/nfs/nfsservice/mountd.c Tue Jul 27 14:04:47 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: mountd.c,v 1.2 2010/07/26 19:24:35 pooka Exp $ */
+/* $NetBSD: mountd.c,v 1.3 2010/07/27 14:04:47 macallan Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95";
#else
-__RCSID("$NetBSD: mountd.c,v 1.2 2010/07/26 19:24:35 pooka Exp $");
+__RCSID("$NetBSD: mountd.c,v 1.3 2010/07/27 14:04:47 macallan Exp $");
#endif
#endif /* not lint */
@@ -477,7 +477,7 @@
struct sockaddr_in6 *sin6;
struct sockaddr_in *sin;
size_t fh_size;
- int error;
+ int error = 0;
(void)sigemptyset(&sighup_mask);
(void)sigaddset(&sighup_mask, SIGHUP);
@@ -874,7 +874,7 @@
struct exportlist **ep;
struct statvfs *fsp;
{
- int error;
+ int error = 0;
if (!check_dirpath(line, lineno, cp))
return 0;
Index: src/tests/fs/nfs/nfsservice/nfsd.c
diff -u src/tests/fs/nfs/nfsservice/nfsd.c:1.1 src/tests/fs/nfs/nfsservice/nfsd.c:1.2
--- src/tests/fs/nfs/nfsservice/nfsd.c:1.1 Mon Jul 26 15:53:00 2010
+++ src/tests/fs/nfs/nfsservice/nfsd.c Tue Jul 27 14:04:47 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: nfsd.c,v 1.1 2010/07/26 15:53:00 pooka Exp $ */
+/* $NetBSD: nfsd.c,v 1.2 2010/07/27 14:04:47 macallan Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
#else
-__RCSID("$NetBSD: nfsd.c,v 1.1 2010/07/26 15:53:00 pooka Exp $");
+__RCSID("$NetBSD: nfsd.c,v 1.2 2010/07/27 14:04:47 macallan Exp $");
#endif
#endif /* not lint */
@@ -153,7 +153,7 @@
int nfsdcnt, on = 1, reregister, sock, tcpflag, tcpsock;
int tcp6sock, ip6flag;
int tp4cnt, tp4flag, tpipcnt, tpipflag, udpflag, ecode, s;
- int error;
+ int error = 0;
#define DEFNFSDCNT 4
nfsdcnt = DEFNFSDCNT;