]> sjero.net Git - wget/blobdiff - src/res.c
[svn] Rename long_to_string to number_to_string, and make it return a useful
[wget] / src / res.c
index 32b53b1beadaeebb33d4cb10ac8ed9a730e49743..38ed7f96a50eedd6289951c3e68dfa417fa1ca34 100644 (file)
--- a/src/res.c
+++ b/src/res.c
@@ -470,7 +470,7 @@ res_match_path (const struct robot_specs *specs, const char *path)
 \f
 /* Registering the specs. */
 
-struct hash_table *registered_specs;
+static struct hash_table *registered_specs;
 
 /* Stolen from cookies.c. */
 #define SET_HOSTPORT(host, port, result) do {          \
@@ -478,7 +478,7 @@ struct hash_table *registered_specs;
   result = alloca (HP_len + 1 + numdigit (port) + 1);  \
   memcpy (result, host, HP_len);                       \
   result[HP_len] = ':';                                        \
-  long_to_string (result + HP_len + 1, port);          \
+  number_to_string (result + HP_len + 1, port);                \
 } while (0)
 
 /* Register RES specs that below to server on HOST:PORT.  They will