summaryrefslogtreecommitdiffstats
path: root/linux/signals.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linux/signals.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/signals.c b/linux/signals.c
index 7d7f868..743fc89 100644
--- a/linux/signals.c
+++ b/linux/signals.c
@@ -10,7 +10,7 @@ get_linux_signals(enum libsyscalls_arch arch, const struct libsyscalls_named_num
{
#define CASE(ARCH)\
*sigs_out = linux_signals_for_##ARCH;\
- *nsigs_out = sizeof(linux_signals_for_##ARCH) / sizeof(*linux_signals_for_##ARCH);\
+ *nsigs_out = ELEMSOF(linux_signals_for_##ARCH);\
goto out
switch ((int)arch) {
@@ -121,7 +121,7 @@ get_linux_signals(enum libsyscalls_arch arch, const struct libsyscalls_named_num
}
*sigs_out = linux_signals_for_generic;
- *nsigs_out = sizeof(linux_signals_for_generic) / sizeof(*linux_signals_for_generic);
+ *nsigs_out = ELEMSOF(linux_signals_for_generic);
out:
return LIBSYSCALLS_E_OK;