diff options
Diffstat (limited to 'src/stdlib')
| -rw-r--r-- | src/stdlib/_stdlib.h | 2 | ||||
| -rw-r--r-- | src/stdlib/bsearch.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stdlib/_stdlib.h b/src/stdlib/_stdlib.h index 14953e6f..27054543 100644 --- a/src/stdlib/_stdlib.h +++ b/src/stdlib/_stdlib.h @@ -23,7 +23,7 @@ static int __safe_compar(int (*compar)(const void *, const void *), const void * unsigned int h2 = __hash(p2, size); int ret = compar(p1, p2); if (h1 != __hash(p1, size) || h2 != __hash(p2, size)) { - __undefined("In call to %s(): Comparison function modifies parameters", fn); + UNDEFINED("In call to %s(): Comparison function modifies parameters", fn); } return ret; } 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 |
