(send_vc): Use ns_put16 instead of putshort.
authordrepper <drepper>
Sat, 6 May 2006 17:35:50 +0000 (17:35 +0000)
committerdrepper <drepper>
Sat, 6 May 2006 17:35:50 +0000 (17:35 +0000)
resolv/res_send.c

index ebe4fbf..887d048 100644 (file)
@@ -674,7 +674,7 @@ send_vc(res_state statp,
        /*
         * Send length & message
         */
-       putshort((u_short)buflen, (u_char*)&len);
+       ns_put16((u_short)buflen, (u_char*)&len);
        evConsIovec(&len, INT16SZ, &iov[0]);
        evConsIovec((void*)buf, buflen, &iov[1]);
        if (TEMP_FAILURE_RETRY (writev(statp->_vcsock, iov, 2))