summaryrefslogtreecommitdiffstats
path: root/usr.bin/wc
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-05-17 19:13:49 +0000
committerpjd <pjd@FreeBSD.org>2010-05-17 19:13:49 +0000
commitb503e7f715283991d86dae898ab32a0d787943be (patch)
tree9f3fe1a12d12f8a6fb86e1030b5f9b7fe0a09d22 /usr.bin/wc
parent4c8ac4b5a8251bbfbc3fe73ddafc735c7832fe78 (diff)
downloadFreeBSD-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.c3
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);
OpenPOWER on IntegriCloud