]> The Tcpdump Group git mirrors - tcpdump/commit
Do not substitute strdup().
authorDenis Ovsienko <[email protected]>
Sat, 18 Feb 2023 23:26:53 +0000 (23:26 +0000)
committerDenis Ovsienko <[email protected]>
Sun, 19 Feb 2023 11:33:13 +0000 (11:33 +0000)
commitafe133ecef9a8593ecf7fcbb557276c05f2bc7ab
treed5c3c13e7bd201a9755d1b9f0721a0af01879093
parent114515274fd958b47ef758260b31018a3b18936e
Do not substitute strdup().

libpcap has been using strdup() for a long time too, but never
substituted it under the assumption the function is available in all
supported OSes, see libpcap commit cb71eef from 2006.  The only
exception to that is Windows, which can have a different name for the
function, but both libpcap and tcpdump for that already use a separate
workaround, which does not involve the substitution.

Let's take this as a proof that strdup() substitution in tcpdump is dead
code, and remove it.
CHANGES
CMakeLists.txt
Makefile.in
cmakeconfig.h.in
configure.ac
interface.h
missing/strdup.c [deleted file]
netdissect.h