Minor tweak, NULL=>nullptr (#844)

This commit was merged in pull request #844.
This commit is contained in:
Earle F. Philhower, III
2022-09-07 14:41:04 -07:00
committed by GitHub
parent f79b0867b6
commit e2b04e7405
22 changed files with 55 additions and 55 deletions
+2 -2
View File
@@ -444,7 +444,7 @@ void DNSServer::replyWithError(DNSHeader *dnsHeader,
_udp.beginPacket(_udp.remoteIP(), _udp.remotePort());
_udp.write((unsigned char *)dnsHeader, sizeof(DNSHeader));
if (query != NULL) {
if (query != nullptr) {
_udp.write(query, queryLength);
}
_udp.endPacket();
@@ -452,5 +452,5 @@ void DNSServer::replyWithError(DNSHeader *dnsHeader,
void DNSServer::replyWithError(DNSHeader *dnsHeader,
DNSReplyCode rcode) {
replyWithError(dnsHeader, rcode, NULL, 0);
replyWithError(dnsHeader, rcode, nullptr, 0);
}