summaryrefslogtreecommitdiff
path: root/modules/m_dns.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-06 13:23:37 +0000
committerSadie Powell <sadie@witchery.services>2024-01-06 13:23:37 +0000
commita9ab0c72a69cacc597e91870f50622de0334f9a7 (patch)
tree57665546eb565fa608a203aca5f4ac65dc57a6f3 /modules/m_dns.cpp
parentde918ef9cfb652b20b215d0d2f6622eb9a117b2c (diff)
Use auto in places where the type is unambiguous.
Diffstat (limited to 'modules/m_dns.cpp')
-rw-r--r--modules/m_dns.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/m_dns.cpp b/modules/m_dns.cpp
index a699d8539..47f6a5a3f 100644
--- a/modules/m_dns.cpp
+++ b/modules/m_dns.cpp
@@ -749,7 +749,7 @@ public:
req->SetSecs(timeout);
- Packet *p = new Packet(this, &this->addrs);
+ auto *p = new Packet(this, &this->addrs);
p->flags = QUERYFLAGS_RD;
p->id = req->id;
p->questions.push_back(*req);
@@ -789,7 +789,7 @@ public:
return true;
}
- Packet *packet = new Packet(recv_packet);
+ auto *packet = new Packet(recv_packet);
packet->flags |= QUERYFLAGS_QR; /* This is a response */
packet->flags |= QUERYFLAGS_AA; /* And we are authoritative */
@@ -928,7 +928,7 @@ public:
if (!addr.valid())
return;
- Packet *packet = new Packet(this, &addr);
+ auto *packet = new Packet(this, &addr);
packet->flags = QUERYFLAGS_AA | QUERYFLAGS_OPCODE_NOTIFY;
try
{