]> sjero.net Git - wget/commitdiff
[svn] Renamed address_list_find to address_list_contains.
authorhniksic <devnull@localhost>
Tue, 18 Nov 2003 22:18:44 +0000 (14:18 -0800)
committerhniksic <devnull@localhost>
Tue, 18 Nov 2003 22:18:44 +0000 (14:18 -0800)
src/ChangeLog
src/host.c
src/host.h
src/http.c

index cdbc66f93bc7a04f6c27a062f2b18df4e746f2e5..a5f15ff9da0e36e118b6e76e74adbbc72e0570d7 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 008c02a2b9094e988e03110570f68b4378318932..bbf90ff8ad886f712d27bd1e52a33fe31815b587 100644 (file)
@@ -113,10 +113,10 @@ address_list_address_at (const struct address_list *al, int pos)
   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)
@@ -149,7 +149,7 @@ address_list_find (const struct address_list *al, const ip_address *ip)
 #endif /* ENABLE_IPV6 */
     default:
       abort ();
-      return 1;
+      return 0;
     }
 }
 
index 4f37d2fe7d08d95162fc8ee75e973cf3dd720751..abe086b936a333be13702ba406e170bd917eec6e 100644 (file)
@@ -101,7 +101,7 @@ void address_list_get_bounds PARAMS ((const struct address_list *,
                                      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 *));
index d594e8505e946bb0a4fa7cddebc0f2613e77ec7b..908e4aeb72e3f72fc603100214e3eefdb6b046dd 100644 (file)
@@ -474,7 +474,7 @@ persistent_available_p (const char *host, int port, int ssl,
          return 0;
        }
 
-      found = address_list_find (al, &ip);
+      found = address_list_contains (al, &ip);
       address_list_release (al);
 
       if (!found)
@@ -586,9 +586,7 @@ time_t http_atotm PARAMS ((const char *));
    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.  */