diff options
author | pjd <pjd@FreeBSD.org> | 2010-05-17 19:13:49 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-05-17 19:13:49 +0000 |
commit | b503e7f715283991d86dae898ab32a0d787943be (patch) | |
tree | 9f3fe1a12d12f8a6fb86e1030b5f9b7fe0a09d22 /usr.bin/wc | |
parent | 4c8ac4b5a8251bbfbc3fe73ddafc735c7832fe78 (diff) | |
download | FreeBSD-src-b503e7f715283991d86dae898ab32a0d787943be.zip FreeBSD-src-b503e7f715283991d86dae898ab32a0d787943be.tar.gz |
Use better type for siginfo (volatile sig_atomic_t instead of int).
Pointed out by: jh
Diffstat (limited to 'usr.bin/wc')
-rw-r--r-- | usr.bin/wc/wc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/wc/wc.c b/usr.bin/wc/wc.c index 7c3e3e4..b628544 100644 --- a/usr.bin/wc/wc.c +++ b/usr.bin/wc/wc.c @@ -63,7 +63,8 @@ __FBSDID("$FreeBSD$"); #include <wctype.h> uintmax_t tlinect, twordct, tcharct, tlongline; -int doline, doword, dochar, domulti, dolongline, siginfo; +int doline, doword, dochar, domulti, dolongline; +static volatile sig_atomic_t siginfo; static void show_cnt(const char *file, uintmax_t linect, uintmax_t wordct, uintmax_t charct, uintmax_t llct); |