Skip to content

Commit 161d0a9

Browse files
authored
Merge pull request #22 from oracle-samples/null-ptr
NULL isn't a number
2 parents a419f67 + 0a8693b commit 161d0a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/bpftune/bpftune.bpf.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
extern __u32 LINUX_KERNEL_VERSION __kconfig;
3333

3434
#ifndef NULL
35-
#define NULL (0)
35+
#define NULL ((void *)0)
3636
#endif
3737

3838
#define STATIC_ASSERT(x, msg) _Static_assert(x, msg)

0 commit comments

Comments
 (0)