diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-06-24 15:05:39 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-06-24 15:05:39 +0000 |
commit | f2a99d7d74da7b6be418b74a6c2d474e184b0810 (patch) | |
tree | 78825c7a45b721809a5e7ec8d04f367ffb70fd42 /lib/hostip.c | |
parent | 8b6b15dcccbe2c137a33b01370fe804462c950a6 (diff) | |
download | curl-f2a99d7d74da7b6be418b74a6c2d474e184b0810.tar.gz |
the _num_chars() function is not used, removing
Diffstat (limited to 'lib/hostip.c')
-rw-r--r-- | lib/hostip.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index 0612d2f93..f3aa36c6a 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -200,30 +200,6 @@ const char *Curl_printable_address(const Curl_addrinfo *ip, } /* - * Count the number of characters that an integer would use in a string - * (base 10). - */ -static int _num_chars(int i) -{ - int chars = 0; - - /* While the number divided by 10 is greater than one, - * re-divide the number by 10, and increment the number of - * characters by 1. - * - * this relies on the fact that for every multiple of 10, - * a new digit is added onto every number - */ - do { - chars++; - - i = (int) i / 10; - } while (i >= 1); - - return chars; -} - -/* * Return a hostcache id string for the providing host + port, to be used by * the DNS caching. */ |