[BACK]Return to res_send.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / lib / libc / resolv

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/lib/libc/resolv/res_send.c between version 1.28 and 1.29

version 1.28, 2013/02/16 13:37:01 version 1.29, 2013/02/16 13:45:45
Line 516  res_nsend(res_state statp,
Line 516  res_nsend(res_state statp,
                 if (v_circuit) {                  if (v_circuit) {
                         /* Use VC; at most one attempt per server. */                          /* Use VC; at most one attempt per server. */
                         tries = statp->retry;                          tries = statp->retry;
                         n = send_vc(statp, buf, buflen, ans, anssiz, &terrno,                          n = send_vc(statp, buf, (size_t)buflen, ans, anssiz, &terrno,
                                     ns);                                      ns);
                         if (n < 0)                          if (n < 0)
                                 goto fail;                                  goto fail;
Line 756  send_vc(res_state statp,
Line 756  send_vc(res_state statp,
         ns_put16((u_short)buflen, (u_char*)(void *)&len);          ns_put16((u_short)buflen, (u_char*)(void *)&len);
         iov[0] = evConsIovec(&len, INT16SZ);          iov[0] = evConsIovec(&len, INT16SZ);
         DE_CONST(buf, tmp);          DE_CONST(buf, tmp);
         iov[1] = evConsIovec(tmp, (int)buflen);          iov[1] = evConsIovec(tmp, (size_t)buflen);
         if (writev(statp->_vcsock, iov, 2) != (ssize_t)(INT16SZ + buflen)) {          if (writev(statp->_vcsock, iov, 2) != (ssize_t)(INT16SZ + buflen)) {
                 *terrno = errno;                  *terrno = errno;
                 Perror(statp, stderr, "write failed", errno);                  Perror(statp, stderr, "write failed", errno);

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

CVSweb <webmaster@jp.NetBSD.org>