summaryrefslogtreecommitdiff
path: root/usr.bin/make/make_malloc.c
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2020-09-02 06:10:44 +0000
committerrillig <rillig@NetBSD.org>2020-09-02 06:10:44 +0000
commit5765d61e96b36ed2cec8e9b198e99227739fc173 (patch)
tree20238f1d915d88161d95cf9e21cc31a55ad874e6 /usr.bin/make/make_malloc.c
parent5653b4963b356397ced39ece3e70804309d8e811 (diff)
make(1): remove redundancy from comments in make_malloc.c
Diffstat (limited to 'usr.bin/make/make_malloc.c')
-rw-r--r--usr.bin/make/make_malloc.c26
1 files changed, 7 insertions, 19 deletions
diff --git a/usr.bin/make/make_malloc.c b/usr.bin/make/make_malloc.c
index 01635f22fac..ba9632b2b25 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.17 2020/08/29 16:47:45 rillig Exp $ */
+/* $NetBSD: make_malloc.c,v 1.18 2020/09/02 06:10:44 rillig 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.17 2020/08/29 16:47:45 rillig Exp $");
+__RCSID("$NetBSD: make_malloc.c,v 1.18 2020/09/02 06:10:44 rillig Exp $");
#endif
#include <stdio.h>
@@ -41,10 +41,7 @@ __RCSID("$NetBSD: make_malloc.c,v 1.17 2020/08/29 16:47:45 rillig Exp $");
#ifndef USE_EMALLOC
static MAKE_ATTR_DEAD void enomem(void);
-/*
- * enomem --
- * die when out of memory.
- */
+/* die when out of memory. */
static MAKE_ATTR_DEAD void
enomem(void)
{
@@ -52,10 +49,7 @@ enomem(void)
exit(2);
}
-/*
- * bmake_malloc --
- * malloc, but die on error.
- */
+/* malloc, but die on error. */
void *
bmake_malloc(size_t len)
{
@@ -66,10 +60,7 @@ bmake_malloc(size_t len)
return p;
}
-/*
- * bmake_strdup --
- * strdup, but die on error.
- */
+/* strdup, but die on error. */
char *
bmake_strdup(const char *str)
{
@@ -92,10 +83,7 @@ bmake_strldup(const char *str, size_t len)
return p;
}
-/*
- * bmake_realloc --
- * realloc, but die on error.
- */
+/* realloc, but die on error. */
void *
bmake_realloc(void *ptr, size_t size)
{
@@ -109,5 +97,5 @@ bmake_realloc(void *ptr, size_t size)
char *
bmake_strsedup(const char *start, const char *end)
{
- return bmake_strldup(start, (size_t)(end - start));
+ return bmake_strldup(start, (size_t)(end - start));
}