diff options
| author | rillig <rillig@NetBSD.org> | 2020-08-03 20:26:09 +0000 |
|---|---|---|
| committer | rillig <rillig@NetBSD.org> | 2020-08-03 20:26:09 +0000 |
| commit | 67514afee4066dad0bb3fe51adf61088d018eba3 (patch) | |
| tree | 0fcc0ddc1865debcb9f065896c66968b80475210 /usr.bin/make/trace.c | |
| parent | a98e422104677cc6e98b9acba5e4803097b90dfe (diff) | |
make(1): no declaration-after-statement anymore
NetBSD make is intended to be maximally portable, therefore it uses only
C89. This was not declared in the Makefile before.
There are still a few places in parse.c and metachar.c that use
end-of-line comments. These will be fixed in a follow-up commit.
Diffstat (limited to 'usr.bin/make/trace.c')
| -rw-r--r-- | usr.bin/make/trace.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/trace.c b/usr.bin/make/trace.c index 866a2e6ca69..0611318dbf0 100644 --- a/usr.bin/make/trace.c +++ b/usr.bin/make/trace.c @@ -1,4 +1,4 @@ -/* $NetBSD: trace.c,v 1.14 2020/08/01 09:55:00 rillig Exp $ */ +/* $NetBSD: trace.c,v 1.15 2020/08/03 20:26:09 rillig Exp $ */ /*- * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -31,11 +31,11 @@ #ifndef MAKE_NATIVE -static char rcsid[] = "$NetBSD: trace.c,v 1.14 2020/08/01 09:55:00 rillig Exp $"; +static char rcsid[] = "$NetBSD: trace.c,v 1.15 2020/08/03 20:26:09 rillig Exp $"; #else #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: trace.c,v 1.14 2020/08/01 09:55:00 rillig Exp $"); +__RCSID("$NetBSD: trace.c,v 1.15 2020/08/03 20:26:09 rillig Exp $"); #endif /* not lint */ #endif @@ -78,8 +78,8 @@ void Trace_Init(const char *pathname) { if (pathname != NULL) { - trpid = getpid(); char *dontFreeIt; + trpid = getpid(); trwd = Var_Value(".CURDIR", VAR_GLOBAL, &dontFreeIt); trfile = fopen(pathname, "a"); |
