diff options
author | Pierre Neidhardt <ambrevar@gmail.com> | 2015-10-21 11:11:17 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-10-27 04:53:18 +0100 |
commit | 456ebe8f8eee82c467805613f107edd84e73ac26 (patch) | |
tree | da9a058a2e598d7dbf2efd9c61d9107eb9c5eb31 /src/pacman/pacman.c | |
parent | 9809102237f89b73a120250260bf3f68d6bc4ba9 (diff) | |
download | pacman-456ebe8f8eee82c467805613f107edd84e73ac26.tar.gz pacman-456ebe8f8eee82c467805613f107edd84e73ac26.tar.xz |
Use ARRAYSIZE macro for non-string array size computation
Signed-off-by: Pierre Neidhardt <ambrevar@gmail.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r-- | src/pacman/pacman.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index d777663d..019b0c2e 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -1141,7 +1141,7 @@ int main(int argc, char *argv[]) new_action.sa_flags = SA_RESTART; /* assign our handler to any signals we care about */ - for(i = 0; i < sizeof(signals) / sizeof(signals[0]); i++) { + for(i = 0; i < ARRAYSIZE(signals); i++) { int signal = signals[i]; sigaction(signal, NULL, &old_action); if(old_action.sa_handler != SIG_IGN) { |