]> The Tcpdump Group git mirrors - tcpdump/commit
Don't use strcasecmp(), use ascii_strcasecmp().
authorGuy Harris <[email protected]>
Fri, 1 Jul 2016 20:58:52 +0000 (13:58 -0700)
committerGuy Harris <[email protected]>
Fri, 1 Jul 2016 20:58:52 +0000 (13:58 -0700)
commit5912e4f9ec8c5d8a12131b6f311da4154c047130
treefceb9054d5ffeebab987db4a2e53cf393d33ff77
parent545a67f69a82f7e2a1704215185482a5422cc18f
Don't use strcasecmp(), use ascii_strcasecmp().

Not all platforms have strcasecmp() (yes, it's in the Single UNIX
Specification, but not all platforms are UNIX or even UN*X; there's some
obscure company in Redmond, Washington who have an OS on which we run),
and on those that do, there's no guarantee that strcasecmp() will treate
A-Z and a-z as being equivalent ("I" and "i" aren't equivalent in a
Turkish locale, for example).

Fix indentation while we're at it.
tcpdump.c