diff options
| author | 2011-10-02 22:20:49 +0000 | |
|---|---|---|
| committer | 2011-10-02 22:20:49 +0000 | |
| commit | c6b62359e9ac47d6c022bcb0cd55e70f26974bf4 (patch) | |
| tree | a93af6ab2c40572f6edbe5f0373041b31b18e71e /usr.sbin/config/files.c | |
| parent | dislays -> displays; from David Vasek (diff) | |
| download | wireguard-openbsd-c6b62359e9ac47d6c022bcb0cd55e70f26974bf4.tar.xz wireguard-openbsd-c6b62359e9ac47d6c022bcb0cd55e70f26974bf4.zip | |
Fix some minor things in config(8):
* As haesbaert suggests, correctly order include files.
* Found some old style function defs. Updated.
* Found a prototype inside a function. Moved.
OK nicm@
Diffstat (limited to 'usr.sbin/config/files.c')
| -rw-r--r-- | usr.sbin/config/files.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/config/files.c b/usr.sbin/config/files.c index b04e3c0b66e..1e7c1efcbb4 100644 --- a/usr.sbin/config/files.c +++ b/usr.sbin/config/files.c @@ -1,4 +1,4 @@ -/* $OpenBSD: files.c,v 1.17 2010/06/02 20:42:17 chl Exp $ */ +/* $OpenBSD: files.c,v 1.18 2011/10/02 22:20:49 edd Exp $ */ /* $NetBSD: files.c,v 1.6 1996/03/17 13:18:17 cgd Exp $ */ /* @@ -42,10 +42,12 @@ */ #include <sys/param.h> + #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <string.h> + #include "config.h" extern const char *yyfile; @@ -72,6 +74,10 @@ static int expr_eval(struct nvlist *, int (*)(const char *, void *), void *); static void expr_free(struct nvlist *); +#ifdef DEBUG +static void pr0(); +#endif + void initfiles(void) { @@ -453,8 +459,6 @@ expr_free(struct nvlist *expr) void prexpr(struct nvlist *expr) { - static void pr0(); - printf("expr ="); pr0(expr); printf("\n"); |
