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
1c18d19d
Commit
1c18d19d
authored
19 years ago
by
Dominick Meglio
Browse files
Options
Downloads
Patches
Plain Diff
Cleaned up some compile warnings
parent
645729e9
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/ares_getnameinfo.c
+7
-4
7 additions, 4 deletions
ares/ares_getnameinfo.c
with
7 additions
and
4 deletions
ares/ares_getnameinfo.c
+
7
−
4
View file @
1c18d19d
...
...
@@ -14,6 +14,7 @@
*/
#include
"setup.h"
#include
<sys/types.h>
#include
<ctype.h>
#if defined(WIN32) && !defined(WATT32)
#include
"nameser.h"
...
...
@@ -63,7 +64,9 @@ struct nameinfo_query {
static
void
nameinfo_callback
(
void
*
arg
,
int
status
,
struct
hostent
*
host
);
static
char
*
lookup_service
(
unsigned
short
port
,
int
flags
,
char
*
buf
);
#ifdef HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID
static
char
*
append_scopeid
(
struct
sockaddr_in6
*
addr6
,
unsigned
int
scopeid
,
char
*
buf
);
#endif
static
char
*
ares_striendstr
(
const
char
*
s1
,
const
char
*
s2
);
void
ares_getnameinfo
(
ares_channel
channel
,
const
struct
sockaddr
*
sa
,
socklen_t
salen
,
...
...
@@ -206,7 +209,7 @@ static void nameinfo_callback(void *arg, int status, struct hostent *host)
*
end
=
0
;
}
}
callback
(
niquery
->
arg
,
ARES_SUCCESS
,
host
->
h_name
,
service
);
niquery
->
callback
(
niquery
->
arg
,
ARES_SUCCESS
,
host
->
h_name
,
service
);
return
;
}
/* We couldn't find the host, but it's OK, we can use the IP */
...
...
@@ -230,10 +233,10 @@ static void nameinfo_callback(void *arg, int status, struct hostent *host)
else
service
=
lookup_service
(
niquery
->
addr
.
addr6
.
sin6_port
,
niquery
->
flags
,
srvbuf
);
}
callback
(
niquery
->
arg
,
ARES_SUCCESS
,
ipbuf
,
service
);
niquery
->
callback
(
niquery
->
arg
,
ARES_SUCCESS
,
ipbuf
,
service
);
return
;
}
callback
(
niquery
->
arg
,
status
,
NULL
,
NULL
);
niquery
->
callback
(
niquery
->
arg
,
status
,
NULL
,
NULL
);
free
(
niquery
);
}
...
...
@@ -317,6 +320,6 @@ static char *ares_striendstr(const char *s1, const char *s2)
}
}
if
(
c2
==
c1
==
NULL
)
return
c1_begin
;
return
(
char
*
)
c1_begin
;
return
NULL
;
}
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