Module Name: src
Committed By: rillig
Date: Wed Sep 2 06:10:44 UTC 2020
Modified Files:
src/usr.bin/make: make_malloc.c
Log Message:
make(1): remove redundancy from comments in make_malloc.c
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/usr.bin/make/make_malloc.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/make/make_malloc.c
diff -u src/usr.bin/make/make_malloc.c:1.17 src/usr.bin/make/make_malloc.c:1.18
--- src/usr.bin/make/make_malloc.c:1.17 Sat Aug 29 16:47:45 2020
+++ src/usr.bin/make/make_malloc.c Wed Sep 2 06:10:44 2020
@@ -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 2
#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 le
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));
}