diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-11-02 12:14:51 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-11-02 12:45:20 +0100 |
commit | d10b132bf5393e648a1c64569746c8e886d50702 (patch) | |
tree | 66a444574feee728a133c754c9527c02fe25e249 /stdio-common/psiginfo.c | |
parent | c94a5688fb1228a862b2d4a3f1239cdc0e3349e5 (diff) | |
download | glibc-d10b132bf5393e648a1c64569746c8e886d50702.zip glibc-d10b132bf5393e648a1c64569746c8e886d50702.tar.gz glibc-d10b132bf5393e648a1c64569746c8e886d50702.tar.bz2 |
stdio-common: Use array_length and array_end macros
Diffstat (limited to 'stdio-common/psiginfo.c')
-rw-r--r-- | stdio-common/psiginfo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/stdio-common/psiginfo.c b/stdio-common/psiginfo.c index 7bf2e2d..b9c455b 100644 --- a/stdio-common/psiginfo.c +++ b/stdio-common/psiginfo.c @@ -15,6 +15,7 @@ License along with the GNU C Library; if not, see <http://www.gnu.org/licenses/>. */ +#include <array_length.h> #include <errno.h> #include <libintl.h> #include <signal.h> @@ -116,7 +117,7 @@ psiginfo (const siginfo_t *pinfo, const char *s) case sig: \ base = C(codestrs_, sig).str; \ offarr = C (codes_, sig); \ - offarr_len = sizeof (C (codes_, sig)) / sizeof (C (codes_, sig)[0]);\ + offarr_len = array_length (C (codes_, sig)); \ break H (SIGILL); |