diff options
Diffstat (limited to 'src/udev/udevadm.c')
-rw-r--r-- | src/udev/udevadm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udevadm.c b/src/udev/udevadm.c index 55b5948aae..0858c37be8 100644 --- a/src/udev/udevadm.c +++ b/src/udev/udevadm.c @@ -67,7 +67,7 @@ static int adm_help(struct udev *udev, int argc, char *argv[]) unsigned int i; fprintf(stderr, "Usage: udevadm [--help] [--version] [--debug] COMMAND [COMMAND OPTIONS]\n"); - for (i = 0; i < ARRAY_SIZE(udevadm_cmds); i++) + for (i = 0; i < ELEMENTSOF(udevadm_cmds); i++) if (udevadm_cmds[i]->help != NULL) printf(" %-12s %s\n", udevadm_cmds[i]->name, udevadm_cmds[i]->help); fprintf(stderr, "\n"); @@ -131,7 +131,7 @@ int main(int argc, char *argv[]) log_debug("runtime dir '%s'\n", udev_get_run_path(udev)); if (command != NULL) - for (i = 0; i < ARRAY_SIZE(udevadm_cmds); i++) { + for (i = 0; i < ELEMENTSOF(udevadm_cmds); i++) { if (strcmp(udevadm_cmds[i]->name, command) == 0) { argc -= optind; argv += optind; |