summaryrefslogtreecommitdiffstats
path: root/modules/dnstap
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2021-01-08 15:25:09 +0100
committerVladimír Čunát <vladimir.cunat@nic.cz>2021-01-12 11:55:03 +0100
commit246964b8f3b21bb2593bb0e81424733e236a93f2 (patch)
tree2d75cfb780e960535fb16cd1ef7b94bd46ce028c /modules/dnstap
parentdnstap: represent DoT and DoH (diff)
downloadknot-resolver-246964b8f3b21bb2593bb0e81424733e236a93f2.tar.xz
knot-resolver-246964b8f3b21bb2593bb0e81424733e236a93f2.zip
fix trivial lint:tidy warnings
These do not make the CI job fail, but better avoid them anyway. I suspect they got added when we updated the CI docker image.
Diffstat (limited to 'modules/dnstap')
-rw-r--r--modules/dnstap/dnstap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/dnstap/dnstap.c b/modules/dnstap/dnstap.c
index d32f02a5..ccddc67e 100644
--- a/modules/dnstap/dnstap.c
+++ b/modules/dnstap/dnstap.c
@@ -187,7 +187,7 @@ static int dnstap_log(kr_layer_t *ctx, enum dnstap_log_phase phase) {
m.has_response_message = rpkt != NULL;
if (rpkt != NULL) {
m.response_message.len = rpkt->size;
- m.response_message.data = (uint8_t *)rpkt->wire;
+ m.response_message.data = rpkt->wire;
}
}
@@ -201,7 +201,7 @@ static int dnstap_log(kr_layer_t *ctx, enum dnstap_log_phase phase) {
/* Create a dnstap Message */
Dnstap__Dnstap dnstap = DNSTAP__DNSTAP__INIT;
dnstap.type = DNSTAP__DNSTAP__TYPE__MESSAGE;
- dnstap.message = (Dnstap__Message *)&m;
+ dnstap.message = &m;
if (dnstap_dt->identity) {
dnstap.identity.data = (uint8_t*)dnstap_dt->identity;