summaryrefslogtreecommitdiff
path: root/src/dnstlsa.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-08 17:27:59 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-08 17:27:59 +0200
commitfde72e50fc280e583b8aec13b4d4af3bd1d205e5 (patch)
tree82942834b95758bb1b129dee6a9c9d13d7542f00 /src/dnstlsa.c
parent973ae30e7c4f7a1afb385dd3d8eeea178f981445 (diff)
removed unneeded headers; fixed some warnings
Diffstat (limited to 'src/dnstlsa.c')
-rw-r--r--src/dnstlsa.c7
1 files changed, 2 insertions, 5 deletions
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 <unistd.h>
#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;
}
}