From: Florian Forster Date: Fri, 17 Jul 2020 08:33:14 +0000 (+0200) Subject: src/testing.h: Support const pointers in CHECK_NOT_NULL(). X-Git-Tag: 6.0.0-rc0~145^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b9bc0a00356db42a413fcde64ce63f274f9331e7;p=thirdparty%2Fcollectd.git src/testing.h: Support const pointers in CHECK_NOT_NULL(). --- diff --git a/src/testing.h b/src/testing.h index 8299d8907..c1badcc8e 100644 --- a/src/testing.h +++ b/src/testing.h @@ -136,7 +136,7 @@ static int check_count__; #define CHECK_NOT_NULL(expr) \ do { \ - void *ptr_; \ + void const *ptr_; \ ptr_ = (expr); \ OK1(ptr_ != NULL, #expr); \ } while (0)