X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=StdLib%2FBsdSocketLib%2Fres_send.c;h=d9ae46558e2fea2f2600ea26dfd1b276b423ccd8;hb=39dfd12de48d01023ef293c37f524b8c2137f7c1;hp=0b887e79d091f3108d655267413b8035512645bc;hpb=a88c31639bb24c73383a4528a5b77066e805148b;p=mirror_edk2.git diff --git a/StdLib/BsdSocketLib/res_send.c b/StdLib/BsdSocketLib/res_send.c index 0b887e79d0..d9ae46558e 100644 --- a/StdLib/BsdSocketLib/res_send.c +++ b/StdLib/BsdSocketLib/res_send.c @@ -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 #ifdef NOPOLL /* libc_r doesn't wrap poll yet() */ -static int use_poll = 0; #else #include static int use_poll = 1; /* adapt to poll() syscall availability */ @@ -855,10 +854,10 @@ read_len: ((_res.pfcode & RES_PRF_REPLY) && (_res.pfcode & RES_PRF_HEAD1)), (stdout, ";; got answer:\n")); - DprintQ((_res.options & RES_DEBUG) || - (_res.pfcode & RES_PRF_REPLY), - (stdout, ""), - ans, (resplen>anssiz)?anssiz:resplen); + if((_res.options & RES_DEBUG) || + (_res.pfcode & RES_PRF_REPLY)) { + __fp_nquery(ans, (resplen>anssiz)?anssiz:resplen, stdout); + } /* * If using virtual circuits, we assume that the first server * is preferred over the rest (i.e. it is on the local