diff options
author | Cyril Hrubis <chrubis@suse.cz> | 2014-09-24 16:34:35 +0200 |
---|---|---|
committer | Cyril Hrubis <chrubis@suse.cz> | 2014-09-24 16:34:35 +0200 |
commit | 4e2bab8415bfd5ddd552220203ed22c93a4617e5 (patch) | |
tree | 8c463b7507cee4f9bc63e336c37c34cd8a7ae83f /utils | |
parent | 8b35601743f74e3199cdd9139b9ff95d00d2833b (diff) |
Make use of NULL
Replace all (type *)0 with NULL
Created with coccinelle patch:
@@
type T;
@@
-(T*)0
+NULL
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/benchmark/ebizzy-0.3/ebizzy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/benchmark/ebizzy-0.3/ebizzy.c b/utils/benchmark/ebizzy-0.3/ebizzy.c index 61d0b7d54..5bb8eff56 100644 --- a/utils/benchmark/ebizzy-0.3/ebizzy.c +++ b/utils/benchmark/ebizzy-0.3/ebizzy.c @@ -241,7 +241,7 @@ static void *alloc_mem(size_t size) int err = 0; if (always_mmap) { - p = mmap((void *)0, size, (PROT_READ | PROT_WRITE), + p = mmap(NULL, size, (PROT_READ | PROT_WRITE), (MAP_PRIVATE | MAP_ANONYMOUS), -1, 0); if (p == MAP_FAILED) err = 1; |