]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4001: remove use of strsep()
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 13 Feb 2014 07:02:35 +0000 (20:02 +1300)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 13 Feb 2014 07:02:35 +0000 (20:02 +1300)
commit5a429fae7f03095c8cc7d75f37905674014e3358
treeb399259c2ece7ed66647d1e5cdf728267d25ebba
parent6bc2a98d0669da1ae14a2fc7da780eb12afc9bf7
Bug 4001: remove use of strsep()

The strsep() function is not defined by POSIX. Additionally
auto-tools has been having some obscure issues detecting
or linking the provided implementation into libcompat on
Windows and Solaris respectively. Which are the two known
OS requiring it.

Investigation of its use in Squid revealed that it can be
replaced with strcspan() which is both portable and more
efficient since it also removes the need for several
strdup()/free() operations used to protect Squid from
strsep() memory fiddling.
CREDITS
compat/Makefile.am
compat/os/mswindows.h
compat/os/solaris.h
compat/strsep.c [deleted file]
compat/strsep.h [deleted file]
configure.ac
src/snmp_core.cc
src/wccp2.cc