diff options
author | Kay Sievers <kay@vrfy.org> | 2012-04-16 03:13:22 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-04-16 19:20:57 +0200 |
commit | 8fef0ff25c9fd7e5bb99d66f43c6357e4996a3cc (patch) | |
tree | 8b570d9685b12ad1210c9ed857c18fa4e2e00913 /src/libudev/libudev-monitor.c | |
parent | b59e246565337d6c6967059dd15a52a15277433e (diff) |
udev: replace ARRAY_SIZE() with ELEMENTSOF()
Diffstat (limited to 'src/libudev/libudev-monitor.c')
-rw-r--r-- | src/libudev/libudev-monitor.c | 2 |
1 files changed, 1 insertions, 1 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; } |