Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/gen libc/ptree: remove CONSTCOND comments
details: https://anonhg.NetBSD.org/src/rev/17a685387883
branches: trunk
changeset: 366434:17a685387883
user: rillig <rillig%NetBSD.org@localhost>
date: Thu May 26 15:23:33 2022 +0000
description:
libc/ptree: remove CONSTCOND comments
Since 2021-01-31, lint does not need them anymore.
diffstat:
common/lib/libc/gen/ptree.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r 1b0f1aecae71 -r 17a685387883 common/lib/libc/gen/ptree.c
--- a/common/lib/libc/gen/ptree.c Thu May 26 15:05:11 2022 +0000
+++ b/common/lib/libc/gen/ptree.c Thu May 26 15:23:33 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ptree.c,v 1.11 2022/05/24 20:50:17 andvar Exp $ */
+/* $NetBSD: ptree.c,v 1.12 2022/05/26 15:23:33 rillig Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
#include <sys/types.h>
#include <sys/systm.h>
#include <lib/libkern/libkern.h>
-__KERNEL_RCSID(0, "$NetBSD: ptree.c,v 1.11 2022/05/24 20:50:17 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ptree.c,v 1.12 2022/05/26 15:23:33 rillig Exp $");
#else
#include <stddef.h>
#include <stdint.h>
@@ -51,9 +51,9 @@
#include <assert.h>
#define KASSERT(e) assert(e)
#else
-#define KASSERT(e) do { } while (/*CONSTCOND*/ 0)
+#define KASSERT(e) do { } while (0)
#endif
-__RCSID("$NetBSD: ptree.c,v 1.11 2022/05/24 20:50:17 andvar Exp $");
+__RCSID("$NetBSD: ptree.c,v 1.12 2022/05/26 15:23:33 rillig Exp $");
#endif /* _KERNEL || _STANDALONE */
#ifdef _LIBC
@@ -115,7 +115,7 @@
#if PTCHECK > 1
#define PTREE_CHECK(pt) ptree_check(pt)
#else
-#define PTREE_CHECK(pt) do { } while (/*CONSTCOND*/ 0)
+#define PTREE_CHECK(pt) do { } while (0)
#endif
static inline bool
Home |
Main Index |
Thread Index |
Old Index