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
028d78b9
Commit
028d78b9
authored
19 years ago
by
Dominick Meglio
Browse files
Options
Downloads
Patches
Plain Diff
Forgot to ares_-ize inet_ntop
parent
944af98b
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
ares/inet_ntop.c
+1
-5
1 addition, 5 deletions
ares/inet_ntop.c
with
1 addition
and
5 deletions
ares/inet_ntop.c
+
1
−
5
View file @
028d78b9
...
...
@@ -70,16 +70,14 @@ static const char *inet_ntop6(const unsigned char *src, char *dst, size_t size);
* Paul Vixie, 1996.
*/
const
char
*
inet_ntop
(
int
af
,
const
void
*
src
,
char
*
dst
,
size_t
size
)
ares_
inet_ntop
(
int
af
,
const
void
*
src
,
char
*
dst
,
size_t
size
)
{
switch
(
af
)
{
case
AF_INET
:
return
(
inet_ntop4
(
src
,
dst
,
size
));
#ifdef INET6
case
AF_INET6
:
return
(
inet_ntop6
(
src
,
dst
,
size
));
#endif
default:
errno
=
EAFNOSUPPORT
;
return
(
NULL
);
...
...
@@ -112,7 +110,6 @@ inet_ntop4(const unsigned char *src, char *dst, size_t size)
return
(
dst
);
}
#ifdef INET6
/* const char *
* inet_ntop6(src, dst, size)
* convert IPv6 binary address into presentation (printable) format
...
...
@@ -205,6 +202,5 @@ inet_ntop6(const unsigned char *src, char *dst, size_t size)
strcpy
(
dst
,
tmp
);
return
(
dst
);
}
#endif
#endif
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