diff mbox

[2/9] avoid warnings about using 0 instead of NULL

Message ID 20170405210927.27948-3-luc.vanoostenryck@gmail.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Luc Van Oostenryck April 5, 2017, 9:09 p.m. UTC
These warning wehere not emitted because of previous errors.
But ...
---
 validation/function-redecl.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/validation/function-redecl.c b/validation/function-redecl.c
index 7fbceb43a..475f18e79 100644
--- a/validation/function-redecl.c
+++ b/validation/function-redecl.c
@@ -1,5 +1,5 @@ 
 #define __user	__attribute__((address_space(1)))
-
+#define NULL	((void*)0)
 
 int ret_type(void);
 void ret_type(void) { }				/* check-should-fail */
@@ -10,11 +10,11 @@  int const ret_const(void) { return 0; }		/* check-should-fail */
 
 
 void *ret_as(void);
-void __user *ret_as(void) { return 0; }		/* check-should-fail */
+void __user *ret_as(void) { return NULL; }	/* check-should-fail */
 
 
 void *ret_mod(void);
-void const *ret_mod(void) { return 0; }		/* check-should-fail */
+void const *ret_mod(void) { return NULL; }	/* check-should-fail */
 
 
 void arg_type(int a);