aboutsummaryrefslogtreecommitdiff
path: root/pcap-nit.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-08-31 17:54:51 -0700
committerGuy Harris <guy@alum.mit.edu>2019-08-31 17:54:51 -0700
commit5a418352f3a1ca4f049396d7892d6e74f4011197 (patch)
tree4e2cfcbd3b442002b2d5d7b4524191d977856ebd /pcap-nit.c
parent5807299ed17700b838b99c93e644346c5e055914 (diff)
Don't use ctype.h macros.
Some of them are locale-dependent, and all of them run the risk of failing if you hand them a char with the 8th bit set. Define our own locale-independent macros that can be handed any integral value. Don't include <ctype.h>. This should address the issue in GitHub pull request #839, and should also catch any (highly unlikely) cases in which something other than Boring Old Space And Tab and, sometimes, CR and LF are treated as white space. (No, we don't want FF or VT treated as white space.)
Diffstat (limited to 'pcap-nit.c')
-rw-r--r--pcap-nit.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/pcap-nit.c b/pcap-nit.c
index 348805d1..b73eaad7 100644
--- a/pcap-nit.c
+++ b/pcap-nit.c
@@ -43,7 +43,6 @@
#include <netinet/tcp.h>
#include <netinet/tcpip.h>
-#include <ctype.h>
#include <errno.h>
#include <stdio.h>