Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/fs/nfs/nfsservice initialize a few variables to shut u...



details:   https://anonhg.NetBSD.org/src/rev/5c2484313101
branches:  trunk
changeset: 756648:5c2484313101
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Jul 27 14:04:47 2010 +0000

description:
initialize a few variables to shut up compiler warnings

diffstat:

 tests/fs/nfs/nfsservice/mountd.c |  8 ++++----
 tests/fs/nfs/nfsservice/nfsd.c   |  6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (63 lines):

diff -r bddbbacb29c5 -r 5c2484313101 tests/fs/nfs/nfsservice/mountd.c
--- a/tests/fs/nfs/nfsservice/mountd.c  Tue Jul 27 13:59:40 2010 +0000
+++ b/tests/fs/nfs/nfsservice/mountd.c  Tue Jul 27 14:04:47 2010 +0000
@@ -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;
diff -r bddbbacb29c5 -r 5c2484313101 tests/fs/nfs/nfsservice/nfsd.c
--- a/tests/fs/nfs/nfsservice/nfsd.c    Tue Jul 27 13:59:40 2010 +0000
+++ b/tests/fs/nfs/nfsservice/nfsd.c    Tue Jul 27 14:04:47 2010 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index