summaryrefslogtreecommitdiff
path: root/src/resolve/dns-type.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-08-03 14:02:04 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-08-03 22:02:32 -0400
commitde292aa1dd1942e151ff034fcb88504a86742f97 (patch)
treef3219829fac7ef893bbc5a772ca7e853899c28a0 /src/resolve/dns-type.h
parent7263f72499e962b3fd54cdb7c79d49ca72121ede (diff)
resolve-host: make arg_type an int
We are using it also to store _DNS_TYPE_INVALID, so it should be signed.
Diffstat (limited to 'src/resolve/dns-type.h')
-rw-r--r--src/resolve/dns-type.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/resolve/dns-type.h b/src/resolve/dns-type.h
index 66063153a0..86951d233a 100644
--- a/src/resolve/dns-type.h
+++ b/src/resolve/dns-type.h
@@ -21,12 +21,10 @@
#pragma once
-#include <inttypes.h>
-
#include "macro.h"
-const char *dns_type_to_string(uint16_t type);
-int dns_type_from_string(const char *s, uint16_t *type);
+const char *dns_type_to_string(int type);
+int dns_type_from_string(const char *s);
/* DNS record types, taken from
* http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml.