From 598b074fe7e2170fc3dd6f6edf0e03b8558b02d4 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 15 Mar 2024 13:13:06 +0100 Subject: Use errx() instead of warnx() in ASSUME() --- include/macros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/macros.h b/include/macros.h index 5be5e4a..5fef367 100644 --- a/include/macros.h +++ b/include/macros.h @@ -18,8 +18,8 @@ # include "errors.h" # define ASSUME(p) \ ((p) ? (void)0 \ - : warnx("%s:%s:%d: assumption ā€˜%sā€™ failed", __FILE__, __func__, \ - __LINE__, #p)) + : errx("%s:%s:%d: assumption ā€˜%sā€™ failed", __FILE__, __func__, \ + __LINE__, #p)) #endif #endif /* !MLIB_MACROS_H */ -- cgit v1.2.3