]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/BsdSocketLib/res_send.c
* StdLib.dsc was changed to always build the sockets code.
[mirror_edk2.git] / StdLib / BsdSocketLib / res_send.c
index 0b887e79d091f3108d655267413b8035512645bc..d9ae46558e2fea2f2600ea26dfd1b276b423ccd8 100644 (file)
@@ -114,7 +114,6 @@ static char rcsid[] = "$Id: res_send.c,v 1.1.1.1 2003/11/19 01:51:39 kyu3 Exp $"
 #endif\r
 \r
 #ifdef NOPOLL           /* libc_r doesn't wrap poll yet() */\r
-static int use_poll = 0;\r
 #else\r
 #include <poll.h>\r
 static int use_poll = 1;    /* adapt to poll() syscall availability */\r
@@ -855,10 +854,10 @@ read_len:
                ((_res.pfcode & RES_PRF_REPLY) &&\r
             (_res.pfcode & RES_PRF_HEAD1)),\r
                (stdout, ";; got answer:\n"));\r
-        DprintQ((_res.options & RES_DEBUG) ||\r
-            (_res.pfcode & RES_PRF_REPLY),\r
-            (stdout, ""),\r
-            ans, (resplen>anssiz)?anssiz:resplen);\r
+        if((_res.options & RES_DEBUG) ||\r
+            (_res.pfcode & RES_PRF_REPLY)) {\r
+            __fp_nquery(ans, (resplen>anssiz)?anssiz:resplen, stdout);\r
+        }\r
         /*\r
          * If using virtual circuits, we assume that the first server\r
          * is preferred over the rest (i.e. it is on the local\r