+2003-11-18 Hrvoje Niksic <hniksic@xemacs.org>
+
+ * host.c (address_list_contains): Renamed address_list_find to
+ address_list_contains because its result is boolean.
+
2003-11-18 Hrvoje Niksic <hniksic@xemacs.org>
* connect.c (select_fd): Return 1 if select is not available.
return al->addresses + pos;
}
-/* Return 1 if IP is one of the addresses in AL. */
+/* Return non-zero if AL contains IP, zero otherwise. */
int
-address_list_find (const struct address_list *al, const ip_address *ip)
+address_list_contains (const struct address_list *al, const ip_address *ip)
{
int i;
switch (ip->type)
#endif /* ENABLE_IPV6 */
default:
abort ();
- return 1;
+ return 0;
}
}
int *, int *));
const ip_address *address_list_address_at PARAMS ((const struct address_list *,
int));
-int address_list_find PARAMS ((const struct address_list *, const ip_address *));
+int address_list_contains PARAMS ((const struct address_list *, const ip_address *));
void address_list_set_faulty PARAMS ((struct address_list *, int));
void address_list_set_connected PARAMS ((struct address_list *));
int address_list_connected_p PARAMS ((const struct address_list *));
return 0;
}
- found = address_list_find (al, &ip);
+ found = address_list_contains (al, &ip);
address_list_release (al);
if (!found)
will print it if there is enough information to do so (almost
always), returning the error to the caller (i.e. http_loop).
- Various HTTP parameters are stored to hs. Although it parses the
- response code correctly, it is not used in a sane way. The caller
- can do that, though.
+ Various HTTP parameters are stored to hs.
If PROXY is non-NULL, the connection will be made to the proxy
server, and u->url will be requested. */