The "debug" variable is only used during network debugging, and then
only if NET_DEBUG is defined. Put it's declaration and initialisation inside '#ifdef NET_DEBUG' and save another 16 bytes.
This commit is contained in:
parent
f28e18332c
commit
02383cded0
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: common.h,v 1.5 2002/02/23 21:43:59 gmcgarry Exp $ */
|
/* $NetBSD: common.h,v 1.6 2002/03/15 13:31:08 simonb Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
* Copyright (c) 1999 The NetBSD Foundation, Inc.
|
||||||
|
@ -36,7 +36,9 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern int debug;
|
#ifdef NET_DEBUG
|
||||||
|
extern int debug; /* only used for network debugging for now */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* startprog.S */
|
/* startprog.S */
|
||||||
void startprog __P((int, int, int, char **, int, const void *, int, int));
|
void startprog __P((int, int, int, char **, int, const void *, int, int));
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: conf.c,v 1.17 2002/02/23 21:43:59 gmcgarry Exp $ */
|
/* $NetBSD: conf.c,v 1.18 2002/03/15 13:31:08 simonb Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1992, 1993
|
* Copyright (c) 1992, 1993
|
||||||
|
@ -50,11 +50,14 @@
|
||||||
#include <machine/dec_prom.h>
|
#include <machine/dec_prom.h>
|
||||||
#include "../common/rz.h"
|
#include "../common/rz.h"
|
||||||
|
|
||||||
|
#ifdef NET_DEBUG
|
||||||
|
/* only used for network debugging for now */
|
||||||
#ifdef DEBUG_VAL
|
#ifdef DEBUG_VAL
|
||||||
int debug = DEBUG_VAL;
|
int debug = DEBUG_VAL;
|
||||||
#else
|
#else
|
||||||
int debug = 0;
|
int debug = 0;
|
||||||
#endif
|
#endif
|
||||||
|
#endif /* NET_DEBUG */
|
||||||
|
|
||||||
#ifndef LIBSA_SINGLE_DEVICE
|
#ifndef LIBSA_SINGLE_DEVICE
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue