summaryrefslogtreecommitdiff
path: root/usr.bin/make/make_malloc.c
diff options
context:
space:
mode:
authorsjg <sjg@NetBSD.org>2012-05-18 02:28:16 +0000
committersjg <sjg@NetBSD.org>2012-05-18 02:28:16 +0000
commit1231d4561eee31f3e0914d3533545741ea58d60c (patch)
treef1b9d632e58d66c0082ebbc809982db71fda9941 /usr.bin/make/make_malloc.c
parent2c2dec6376d96ba18bf67b5230a1a39cdfb18c11 (diff)
Avoid nested extern declaration warnings
Diffstat (limited to 'usr.bin/make/make_malloc.c')
-rw-r--r--usr.bin/make/make_malloc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/make/make_malloc.c b/usr.bin/make/make_malloc.c
index f0ccbc44bda..87f6840979e 100644
--- a/usr.bin/make/make_malloc.c
+++ b/usr.bin/make/make_malloc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: make_malloc.c,v 1.6 2010/12/25 20:35:25 dholland Exp $ */
+/* $NetBSD: make_malloc.c,v 1.7 2012/05/18 02:28:16 sjg Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
#ifdef MAKE_NATIVE
#include <sys/cdefs.h>
-__RCSID("$NetBSD: make_malloc.c,v 1.6 2010/12/25 20:35:25 dholland Exp $");
+__RCSID("$NetBSD: make_malloc.c,v 1.7 2012/05/18 02:28:16 sjg Exp $");
#endif
#include <stdio.h>
@@ -43,11 +43,11 @@ __RCSID("$NetBSD: make_malloc.c,v 1.6 2010/12/25 20:35:25 dholland Exp $");
* enomem --
* die when out of memory.
*/
+extern char *progname;
+
static void
enomem(void)
{
- extern char *progname;
-
(void)fprintf(stderr, "%s: %s.\n", progname, strerror(ENOMEM));
exit(2);
}