summaryrefslogtreecommitdiff
path: root/make_malloc.h
diff options
context:
space:
mode:
authorSimon J. Gerraty <sjg@FreeBSD.org>2021-01-14 01:24:34 +0000
committerSimon J. Gerraty <sjg@FreeBSD.org>2021-01-14 01:24:34 +0000
commit8e11a9b4250be3c3379c45fa820bff78d99d5946 (patch)
treeea4954dbe7647b6211a20458b2a881e3d943639f /make_malloc.h
parent1b65f0bd2bda7121a90f8cb4c1cacaa20f1b681d (diff)
Diffstat (limited to 'make_malloc.h')
-rw-r--r--make_malloc.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/make_malloc.h b/make_malloc.h
index 551495fb6266..4dacc924c40f 100644
--- a/make_malloc.h
+++ b/make_malloc.h
@@ -1,4 +1,4 @@
-/* $NetBSD: make_malloc.h,v 1.13 2020/11/10 00:32:12 rillig Exp $ */
+/* $NetBSD: make_malloc.h,v 1.15 2020/12/30 10:03:16 rillig Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -41,14 +41,16 @@ char *bmake_strldup(const char *, size_t);
char *bmake_strsedup(const char *, const char *);
-/* Thin wrapper around free(3) to avoid the extra function call in case
+/*
+ * Thin wrapper around free(3) to avoid the extra function call in case
* p is NULL, to save a few machine instructions.
*
* The case of a NULL pointer happens especially often after Var_Value,
- * since only environment variables need to be freed, but not others. */
+ * since only environment variables need to be freed, but not others.
+ */
MAKE_INLINE void
bmake_free(void *p)
{
- if (p != NULL)
- free(p);
+ if (p != NULL)
+ free(p);
}