about summary refs log tree commit diff
path: root/resolv/res_data.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-06-30 11:31:35 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-06-30 11:31:35 +0200
commitd85f99679d89fb47426301620b7a980388fddcfd (patch)
treee3bc95de2ce21a0e77a680647a1b3febee8a698b /resolv/res_data.c
parent4d4ce84924dbde90294522598212e997b5f719e9 (diff)
downloadglibc-d85f99679d89fb47426301620b7a980388fddcfd.tar.gz
glibc-d85f99679d89fb47426301620b7a980388fddcfd.tar.xz
glibc-d85f99679d89fb47426301620b7a980388fddcfd.zip
resolv: Move fp_nquery, fp_query, p_query, _res_opcodes
From res_data.c to res_debug.c.

Also drop the unnecessary _res initialization from fp_nquery.
Diffstat (limited to 'resolv/res_data.c')
-rw-r--r--resolv/res_data.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/resolv/res_data.c b/resolv/res_data.c
index d907bfc9bd..d05389e134 100644
--- a/resolv/res_data.c
+++ b/resolv/res_data.c
@@ -32,46 +32,6 @@
 #include <string.h>
 #include <unistd.h>
 
-const char *_res_opcodes[] = {
-	"QUERY",
-	"IQUERY",
-	"CQUERYM",
-	"CQUERYU",	/* experimental */
-	"NOTIFY",	/* experimental */
-	"UPDATE",
-	"6",
-	"7",
-	"8",
-	"9",
-	"10",
-	"11",
-	"12",
-	"13",
-	"ZONEINIT",
-	"ZONEREF",
-};
-libresolv_hidden_data_def (_res_opcodes)
-
-void
-p_query(const u_char *msg) {
-	fp_query(msg, stdout);
-}
-
-void
-fp_query(const u_char *msg, FILE *file) {
-	fp_nquery(msg, PACKETSZ, file);
-}
-libresolv_hidden_def (fp_query)
-
-void
-fp_nquery(const u_char *msg, int len, FILE *file) {
-	if (__res_maybe_init (&_res, 0) == -1)
-		return;
-
-	res_pquery(&_res, msg, len, file);
-}
-libresolv_hidden_def (fp_nquery)
-
 int
 res_query(const char *name,	/* domain name */
 	  int class, int type,	/* class and type of query */