Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
f2a99d7d
Commit
f2a99d7d
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
the _num_chars() function is not used, removing
parent
8b6b15dc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/hostip.c
+0
-24
0 additions, 24 deletions
lib/hostip.c
with
0 additions
and
24 deletions
lib/hostip.c
+
0
−
24
View file @
f2a99d7d
...
...
@@ -199,30 +199,6 @@ const char *Curl_printable_address(const Curl_addrinfo *ip,
return
Curl_inet_ntop
(
af
,
af
==
AF_INET
?
ip4
:
ip6
,
buf
,
bufsize
);
}
/*
* 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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment