summaryrefslogtreecommitdiff
path: root/src/stdlib/bsearch.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-02-02 13:25:45 -0500
committerJakob Kaivo <jkk@ung.org>2024-02-02 13:25:45 -0500
commit24f39222098253da4ad1a9cd8ddef5b9b0152ba1 (patch)
tree36eede312e7dcb4a9afe49342fba996ef273549d /src/stdlib/bsearch.c
parent6aebe0dbfc24f0af73eb422b4748a9b35df5b435 (diff)
use UNDEFINED() instead of directly calling __undefined()
Diffstat (limited to 'src/stdlib/bsearch.c')
-rw-r--r--src/stdlib/bsearch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/bsearch.c b/src/stdlib/bsearch.c
index a096cf16..f3b0fb32 100644
--- a/src/stdlib/bsearch.c
+++ b/src/stdlib/bsearch.c
@@ -21,7 +21,7 @@ void * bsearch(const void * key, const void * base, size_t nmemb, size_t size, i
#ifndef NDEBUG
for (size_t i = 0; nmemb != 0 && i < nmemb - 1; i++) {
if (SAFE_COMPAR(compar, addr + (i * size), addr + ((i + 1) * size), size, "bsearch") > 0) {
- __undefined("In call to bsearch(): Base array is not sorted");
+ UNDEFINED("In call to bsearch(): Base array is not sorted");
}
}
#endif