diff options
Diffstat (limited to 'linux/errors.c')
-rw-r--r-- | linux/errors.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/errors.c b/linux/errors.c index d8a0e7f..94c3cd2 100644 --- a/linux/errors.c +++ b/linux/errors.c @@ -10,7 +10,7 @@ get_linux_syscall_errors(enum libsyscalls_arch arch, const struct libsyscalls_na { #define CASE(ARCH)\ *errs_out = linux_errors_for_##ARCH;\ - *nerrs_out = sizeof(linux_errors_for_##ARCH) / sizeof(*linux_errors_for_##ARCH);\ + *nerrs_out = ELEMSOF(linux_errors_for_##ARCH);\ goto out switch ((int)arch) { @@ -121,7 +121,7 @@ get_linux_syscall_errors(enum libsyscalls_arch arch, const struct libsyscalls_na } *errs_out = linux_errors_for_generic; - *nerrs_out = sizeof(linux_errors_for_generic) / sizeof(*linux_errors_for_generic); + *nerrs_out = ELEMSOF(linux_errors_for_generic); out: return LIBSYSCALLS_E_OK; |