1999-03-07 Mark Kettenis <kettenis@gnu.org>
[kopensolaris-gnu/glibc.git] / resolv / res_send.c
index 38e1e05..608659b 100644 (file)
@@ -511,7 +511,7 @@ read_len:
                         * Use datagrams.
                         */
                        int timeout;
-                       fd_set dsmask;
+                       struct pollfd pfd[1];
                        struct sockaddr_in from;
                        socklen_t fromlen;
 
@@ -782,12 +782,12 @@ read_len:
           } /*foreach ns*/
        } /*foreach retry*/
        res_close();
-       if (!v_circuit)
+       if (!v_circuit) {
                if (!gotsomewhere)
                        __set_errno (ECONNREFUSED); /* no nameservers found */
                else
                        __set_errno (ETIMEDOUT);    /* no answer obtained */
-       else
+       else
                __set_errno (terrno);
        return (-1);
 }