diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-08-31 17:54:51 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-08-31 17:54:51 -0700 |
commit | 5a418352f3a1ca4f049396d7892d6e74f4011197 (patch) | |
tree | 4e2cfcbd3b442002b2d5d7b4524191d977856ebd /pcap-nit.c | |
parent | 5807299ed17700b838b99c93e644346c5e055914 (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.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -43,7 +43,6 @@ #include <netinet/tcp.h> #include <netinet/tcpip.h> -#include <ctype.h> #include <errno.h> #include <stdio.h> |