]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/must_be.h: is_same_typeof(): Rename macro
authorAlejandro Colomar <alx@kernel.org>
Mon, 22 Jan 2024 21:42:46 +0000 (22:42 +0100)
committerIker Pedrosa <ikerpedrosam@gmail.com>
Fri, 26 Jan 2024 08:40:10 +0000 (09:40 +0100)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/must_be.h

index 2ca7b62a2851ed3c500b5734a4cec40183038f0b..62484916713ee06237238cb1c8a98dfb076f1cc4 100644 (file)
@@ -90,9 +90,9 @@
  */
 
 
-#define is_same_type(a, b)  __builtin_types_compatible_p(typeof(a), typeof(b))
-#define is_array(a)         (!is_same_type((a), &(a)[0]))
-#define must_be_array(a)    must_be(is_array(a))
+#define is_same_typeof(a, b)  __builtin_types_compatible_p(typeof(a), typeof(b))
+#define is_array(a)           (!is_same_typeof((a), &(a)[0]))
+#define must_be_array(a)      must_be(is_array(a))
 
 
 #endif  // include guard