From fde72e50fc280e583b8aec13b4d4af3bd1d205e5 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Mon, 8 Jul 2024 17:27:59 +0200 Subject: removed unneeded headers; fixed some warnings --- src/dnstlsa.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/dnstlsa.c') diff --git a/src/dnstlsa.c b/src/dnstlsa.c index 715bde1..0452761 100644 --- a/src/dnstlsa.c +++ b/src/dnstlsa.c @@ -1,12 +1,9 @@ #include #include "buffer.h" -#include "byte.h" -#include "dnsresolv.h" #include "exit.h" #include "getoptb.h" #include "logmsg.h" -#include "str.h" #include "stralloc.h" #include "dns.h" @@ -24,7 +21,7 @@ int main(int argc, char **argv) uint16 selector; uint16 type; char *port = "25"; - char proto[7] = "._tcp."; + const char *proto = "._tcp."; char *host; unsigned char ch; int opt; @@ -38,7 +35,7 @@ int main(int argc, char **argv) switch (opt) { case 'p': port = optarg; break; case 't': break; - case 'u': str_copy(proto, "._udp."); break; + case 'u': proto = "._udp."; break; case 'v': verbose = 1; } } -- cgit v1.2.3