diff options
Diffstat (limited to 'src/libudev')
-rw-r--r-- | src/libudev/libudev-monitor.c | 2 | ||||
-rw-r--r-- | src/libudev/libudev-private.h | 1 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/libudev/libudev-monitor.c b/src/libudev/libudev-monitor.c index a6efd9758c..73a9c48993 100644 --- a/src/libudev/libudev-monitor.c +++ b/src/libudev/libudev-monitor.c @@ -296,7 +296,7 @@ _public_ int udev_monitor_filter_update(struct udev_monitor *udev_monitor) /* matched, pass packet */ bpf_stmt(ins, &i, BPF_RET|BPF_K, 0xffffffff); - if (i+1 >= ARRAY_SIZE(ins)) + if (i+1 >= ELEMENTSOF(ins)) return -1; } diff --git a/src/libudev/libudev-private.h b/src/libudev/libudev-private.h index d914aa4599..91f92264dd 100644 --- a/src/libudev/libudev-private.h +++ b/src/libudev/libudev-private.h @@ -19,7 +19,6 @@ #include "macro.h" #include "libudev.h" -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #define READ_END 0 #define WRITE_END 1 |