]> sjero.net Git - wget/blobdiff - src/url.c
[svn] Rename long_to_string to number_to_string, and make it return a useful
[wget] / src / url.c
index ecf94417574d71ecfb99cacb1fc915488030a78e..f2953c40c778aefa35e18323014e383eae9c5e47 100644 (file)
--- a/src/url.c
+++ b/src/url.c
@@ -1206,7 +1206,7 @@ mkstruct (const struct url *u)
        {
          int len = strlen (dirpref);
          dirpref[len] = ':';
-         long_to_string (dirpref + len + 1, u->port);
+         number_to_string (dirpref + len + 1, u->port);
        }
     }
   else                         /* not add_hostdir */
@@ -1654,8 +1654,7 @@ url_string (const struct url *url, int hide_password)
   if (url->port != scheme_port)
     {
       *p++ = ':';
-      long_to_string (p, url->port);
-      p += strlen (p);
+      p = number_to_string (p, url->port);
     }
 
   full_path_write (url, p);