From 4f9aefc753247c9c0e206b8b22563506212c21f5 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Thu, 3 May 2012 15:17:27 +0100 Subject: [PATCH] Don't fight over namespace with re-implementation of strchrnul() --- src/dnssec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dnssec.c b/src/dnssec.c index 30b5716..c9276ba 100644 --- a/src/dnssec.c +++ b/src/dnssec.c @@ -404,7 +404,7 @@ typedef struct PendingRRSIGValidation This is an existing C GNU extension, but it's easier to reimplement it, rather than tweaking with configure. */ -static char *strchrnul(char *str, char ch) +static char *my_strchrnul(char *str, char ch) { while (*str && *str != ch) str++; @@ -420,7 +420,7 @@ static int convert_domain_to_wire(char *name, unsigned char* out) do { - p = strchrnul(name, '.'); + p = my_strchrnul(name, '.'); if ((len = p-name)) { *out++ = len;