-static int res_using_defaults()
-{
- int i;
-
- if (_res.nscount != _res_shadow.nscount)
- return 0;
-
- for (i = 0; i < _res.nscount; i++) {
- /* Check that the address and port have not changed */
- if ((_res.nsaddr_list[i].sin_addr.s_addr !=
- _res_shadow.nsaddr_list[i].sin_addr.s_addr) ||
- (_res.nsaddr_list[i].sin_port !=
- _res_shadow.nsaddr_list[i].sin_port)) {
- return 0;
- }
- }
-
- return 1;
-}
-