Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/make make(1): remove redundancy from comments in mak...
details: https://anonhg.NetBSD.org/src/rev/7db8d0a922d1
branches: trunk
changeset: 938102:7db8d0a922d1
user: rillig <rillig%NetBSD.org@localhost>
date: Wed Sep 02 06:10:44 2020 +0000
description:
make(1): remove redundancy from comments in make_malloc.c
diffstat:
usr.bin/make/make_malloc.c | 26 +++++++-------------------
1 files changed, 7 insertions(+), 19 deletions(-)
diffs (73 lines):
diff -r 92cd631716bf -r 7db8d0a922d1 usr.bin/make/make_malloc.c
--- a/usr.bin/make/make_malloc.c Wed Sep 02 05:36:58 2020 +0000
+++ b/usr.bin/make/make_malloc.c Wed Sep 02 06:10:44 2020 +0000
@@ -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 @@
#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 @@
exit(2);
}
-/*
- * bmake_malloc --
- * malloc, but die on error.
- */
+/* malloc, but die on error. */
void *
bmake_malloc(size_t len)
{
@@ -66,10 +60,7 @@
return p;
}
-/*
- * bmake_strdup --
- * strdup, but die on error.
- */
+/* strdup, but die on error. */
char *
bmake_strdup(const char *str)
{
@@ -92,10 +83,7 @@
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 @@
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));
}
Home |
Main Index |
Thread Index |
Old Index