initialize a few variables to shut up compiler warnings

This commit is contained in:
macallan 2010-07-27 14:04:47 +00:00
parent 8688cfe5da
commit 7a5d0aeabe
2 changed files with 7 additions and 7 deletions

View File

@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\
#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 @@ mntsrv(rqstp, transp)
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 @@ parse_directory(line, lineno, tgrp, got_nondir, cp, ep, fsp)
struct exportlist **ep;
struct statvfs *fsp;
{
int error;
int error = 0;
if (!check_dirpath(line, lineno, cp))
return 0;

View File

@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\
#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 @@ nfsd_main(argc, argv)
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;