Mercurial > gnulib
comparison tests/test-tsearch.c @ 40217:a315d09bcec4
alloca, tsearch-tests: Write NULL for the null pointer.
* lib/alloca.c (i00afunc): Write NULL instead of 0.
* tests/test-tsearch.c (mangle_tree): Likewise.
author | Michal Privoznik <mprivozn@redhat.com> |
---|---|
date | Sun, 03 Mar 2019 19:34:57 +0100 |
parents | 84fd38f4932c |
children |
comparison
equal
deleted
inserted
replaced
40216:02ed6264c100 | 40217:a315d09bcec4 |
---|---|
221 { | 221 { |
222 fputs ("Found element which is not in tree yet.\n", stdout); | 222 fputs ("Found element which is not in tree yet.\n", stdout); |
223 error = 1; | 223 error = 1; |
224 } | 224 } |
225 elem = tsearch (x + j, root, cmp_fn); | 225 elem = tsearch (x + j, root, cmp_fn); |
226 if (elem == 0 | 226 if (elem == NULL |
227 || tfind (x + j, (void *const *) root, cmp_fn) == NULL) | 227 || tfind (x + j, (void *const *) root, cmp_fn) == NULL) |
228 { | 228 { |
229 fputs ("Couldn't find element after it was added.\n", | 229 fputs ("Couldn't find element after it was added.\n", |
230 stdout); | 230 stdout); |
231 error = 1; | 231 error = 1; |