summaryrefslogtreecommitdiff
path: root/src/dnstlsa.c
diff options
context:
space:
mode:
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;
}
}