From dd42ebef94372fece41ab5b35053f5e8b970db9d Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Fri, 17 Jan 2025 17:56:52 +0100 Subject: [PATCH] Drop useless and not quite correct cast (GH-17454) A while ago, the cast has been changed from `u_char *` to `uint8_t *`, but neither makes sense, and causes Clang to complain with `-Wcompare-distinct-pointer-types`. --- ext/standard/dns_win32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/standard/dns_win32.c b/ext/standard/dns_win32.c index 616d9eb4368..26c6487902e 100644 --- a/ext/standard/dns_win32.c +++ b/ext/standard/dns_win32.c @@ -260,7 +260,7 @@ static void php_parserr(PDNS_RECORD pRec, int type_to_fetch, int store, bool raw for(i=0; i < 8; i++) { if (out[i] != 0) { - if (tp > (uint8_t *)buf) { + if (tp > buf) { in_v6_break = 0; tp[0] = ':'; tp++;