mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Don't fight over namespace with re-implementation of strchrnul()
This commit is contained in:
@@ -404,7 +404,7 @@ typedef struct PendingRRSIGValidation
|
|||||||
|
|
||||||
This is an existing C GNU extension, but it's easier to reimplement it,
|
This is an existing C GNU extension, but it's easier to reimplement it,
|
||||||
rather than tweaking with configure. */
|
rather than tweaking with configure. */
|
||||||
static char *strchrnul(char *str, char ch)
|
static char *my_strchrnul(char *str, char ch)
|
||||||
{
|
{
|
||||||
while (*str && *str != ch)
|
while (*str && *str != ch)
|
||||||
str++;
|
str++;
|
||||||
@@ -420,7 +420,7 @@ static int convert_domain_to_wire(char *name, unsigned char* out)
|
|||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
p = strchrnul(name, '.');
|
p = my_strchrnul(name, '.');
|
||||||
if ((len = p-name))
|
if ((len = p-name))
|
||||||
{
|
{
|
||||||
*out++ = len;
|
*out++ = len;
|
||||||
|
|||||||
Reference in New Issue
Block a user