appease gcc -Wuninitialized
This commit is contained in:
parent
ef45472693
commit
9aeda3fd63
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: tftp.c,v 1.20 2004/10/10 22:15:34 he Exp $ */
|
||||
/* $NetBSD: tftp.c,v 1.21 2005/06/02 03:11:23 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@ -34,7 +34,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)tftp.c 8.1 (Berkeley) 6/6/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: tftp.c,v 1.20 2004/10/10 22:15:34 he Exp $");
|
||||
__RCSID("$NetBSD: tftp.c,v 1.21 2005/06/02 03:11:23 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -541,7 +541,7 @@ tpacket(s, tp, n)
|
||||
{
|
||||
static char *opcodes[] =
|
||||
{ "#0", "RRQ", "WRQ", "DATA", "ACK", "ERROR", "OACK" };
|
||||
char *cp, *file, *endp, *opt, *spc;
|
||||
char *cp, *file, *endp, *opt = NULL, *spc;
|
||||
u_short op = ntohs(tp->th_opcode);
|
||||
int i, o;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: top.c,v 1.20 2004/07/23 13:31:50 wiz Exp $ */
|
||||
/* $NetBSD: top.c,v 1.21 2005/06/02 03:19:57 lukem Exp $ */
|
||||
|
||||
const char copyright[] = "Copyright (c) 1984 through 1996, William LeFebvre";
|
||||
|
||||
@ -49,7 +49,7 @@ const char copyright[] = "Copyright (c) 1984 through 1996, William LeFebvre";
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: top.c,v 1.20 2004/07/23 13:31:50 wiz Exp $");
|
||||
__RCSID("$NetBSD: top.c,v 1.21 2005/06/02 03:19:57 lukem Exp $");
|
||||
#endif
|
||||
|
||||
#include "os.h"
|
||||
@ -133,8 +133,8 @@ char *argv[];
|
||||
char *env_top;
|
||||
char **preset_argv;
|
||||
int preset_argc = 0;
|
||||
char **av;
|
||||
int ac;
|
||||
char **av = NULL;
|
||||
int ac = 0;
|
||||
char dostates = No;
|
||||
char do_unames = Yes;
|
||||
char interactive = Maybe;
|
||||
|
Loading…
Reference in New Issue
Block a user