Wrap declaration of a STATIC function that's only conditionally defined

in a suitable ifdef, so things still compile if STATIC is defined as
"static", which is for some reason not the default.

(In the long run STATIC should go away - it might have once been a
portability hack but now definitely serves no purpose.)
This commit is contained in:
dholland 2008-10-16 15:31:05 +00:00
parent a60de16dcb
commit 744c8edc4b

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec.c,v 1.41 2008/02/15 17:26:06 matt Exp $ */
/* $NetBSD: exec.c,v 1.42 2008/10/16 15:31:05 dholland Exp $ */
/*-
* Copyright (c) 1991, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)exec.c 8.4 (Berkeley) 6/8/95";
#else
__RCSID("$NetBSD: exec.c,v 1.41 2008/02/15 17:26:06 matt Exp $");
__RCSID("$NetBSD: exec.c,v 1.42 2008/10/16 15:31:05 dholland Exp $");
#endif
#endif /* not lint */
@ -101,12 +101,15 @@ int exerrno = 0; /* Last exec error */
STATIC void tryexec(char *, char **, char **, int);
STATIC void execinterp(char **, char **);
STATIC void printentry(struct tblentry *, int);
STATIC void clearcmdentry(int);
STATIC struct tblentry *cmdlookup(const char *, int);
STATIC void delete_cmd_entry(void);
#ifndef BSD
STATIC void execinterp(char **, char **);
#endif
extern const char *const parsekwd[];