]> granicus.if.org Git - pdns/commitdiff
Use c++-style casts
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Mon, 8 Jan 2018 15:19:22 +0000 (16:19 +0100)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Mon, 8 Jan 2018 15:19:22 +0000 (16:19 +0100)
pdns/dnsdist-lua-rules.cc

index 9128b22937d6314219f2b8d9438d5361e10613a8..3ecafb7930b29d8a248ec93139d70c28c282962d 100644 (file)
@@ -755,7 +755,7 @@ public:
     char * optStart = NULL;
     size_t optLen = 0;
     bool last = false;
-    int res = locateEDNSOptRR((char*)dq->dh, dq->len, &optStart, &optLen, &last);
+    int res = locateEDNSOptRR(const_cast<char*>(reinterpret_cast<const char*>(dq->dh)), dq->len, &optStart, &optLen, &last);
     if (res != 0) {
       // no EDNS OPT RR
       return d_extrcode == 0;