summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2009-03-20 16:38:59 +0000
committerjoerg <joerg>2009-03-20 16:38:59 +0000
commit62969b98dcafb3b41c33e4b1d1980bf0fcf1e489 (patch)
treedca8025f8bfc76ac63bdb50a18dc0badcf86c29e
parenta7d7fa25eafeb0888db86f4dd91390c9526a5a38 (diff)
downloadpkgsrc-62969b98dcafb3b41c33e4b1d1980bf0fcf1e489.tar.gz
Apply parse.c 1.149 and 1.150 from src/usr.bin/make to remove use of
C99.
-rw-r--r--devel/bmake/files/parse.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/devel/bmake/files/parse.c b/devel/bmake/files/parse.c
index 424c591876b..5da1a49d416 100644
--- a/devel/bmake/files/parse.c
+++ b/devel/bmake/files/parse.c
@@ -1,4 +1,4 @@
-/* $NetBSD: parse.c,v 1.3 2008/11/11 14:37:05 joerg Exp $ */
+/* $NetBSD: parse.c,v 1.4 2009/03/20 16:38:59 joerg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@@ -69,14 +69,14 @@
*/
#ifndef MAKE_NATIVE
-static char rcsid[] = "$NetBSD: parse.c,v 1.3 2008/11/11 14:37:05 joerg Exp $";
+static char rcsid[] = "$NetBSD: parse.c,v 1.4 2009/03/20 16:38:59 joerg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)parse.c 8.3 (Berkeley) 3/19/94";
#else
-__RCSID("$NetBSD: parse.c,v 1.3 2008/11/11 14:37:05 joerg Exp $");
+__RCSID("$NetBSD: parse.c,v 1.4 2009/03/20 16:38:59 joerg Exp $");
#endif
#endif /* not lint */
#endif
@@ -477,9 +477,7 @@ Parse_Error(int type, const char *fmt, ...)
if (curFile == (IFile *)NIL) {
/* avoid segfault */
static IFile intFile = {
- .fname = NULL,
- .lineno = 0,
- .fd = -1,
+ NULL, 0, /* fd */ -1, 0, NULL, NULL, NULL, 0
};
curFile = &intFile;
}