The macros that remain in "must_be.h" really belong in "typetraits.h".
Move them there, and remove "must_be.h".
Signed-off-by: Alejandro Colomar <alx@kernel.org>
loginprompt.c \
mail.c \
motd.c \
- must_be.h \
myname.c \
nss.c \
nscd.c \
+++ /dev/null
-/*
- * SPDX-FileCopyrightText: 2019-2023, Alejandro Colomar <alx@kernel.org>
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-
-#ifndef SHADOW_INCLUDE_LIBMISC_MUST_BE_H_
-#define SHADOW_INCLUDE_LIBMISC_MUST_BE_H_
-
-
-#include <config.h>
-
-
-#define is_same_type(a, b) \
-( \
- __builtin_types_compatible_p(a, b) \
-)
-
-
-#define is_same_typeof(a, b) \
-( \
- is_same_type(typeof(a), typeof(b)) \
-)
-
-
-#endif // include guard
#include <search.h>
#include <stddef.h>
-#include "must_be.h"
#include "search/cmp/cmp.h"
+#include "typetraits.h"
#include <assert.h>
#include <search.h>
-#include "must_be.h"
#include "search/cmp/cmp.h"
+#include "typetraits.h"
#include <assert.h>
#include <stdlib.h>
-#include "must_be.h"
#include "search/cmp/cmp.h"
+#include "typetraits.h"
#define QSORT(a, n) do \
-// SPDX-FileCopyrightText: 2022-2024, Alejandro Colomar <alx@kernel.org>
+// SPDX-FileCopyrightText: 2019-2024, Alejandro Colomar <alx@kernel.org>
// SPDX-License-Identifier: BSD-3-Clause
)
+#define is_same_type(a, b) \
+( \
+ __builtin_types_compatible_p(a, b) \
+)
+
+#define is_same_typeof(a, b) \
+( \
+ is_same_type(typeof(a), typeof(b)) \
+)
+
+
#endif // include guard
#include "faillog.h"
#include "getdef.h"
#include "groupio.h"
-#include "must_be.h"
#include "nscd.h"
#include "prototypes.h"
#include "pwauth.h"
#include "string/strcmp/strprefix.h"
#include "string/strdup/xstrdup.h"
#include "time/day_to_str.h"
+#include "typetraits.h"
/*