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
6a35cb60
Commit
6a35cb60
authored
19 years ago
by
Dominick Meglio
Browse files
Options
Downloads
Patches
Plain Diff
More compiler warning cleanups
parent
1e51c3a8
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
-2
7 additions, 2 deletions
ares/ares_getnameinfo.c
with
7 additions
and
2 deletions
ares/ares_getnameinfo.c
+
7
−
2
View file @
6a35cb60
...
...
@@ -22,6 +22,7 @@
#include
<sys/socket.h>
#include
<netinet/in.h>
#include
<netdb.h>
#include
<arpa/inet.h>
#include
<arpa/nameser.h>
#ifdef HAVE_ARPA_NAMESER_COMPAT_H
#include
<arpa/nameser_compat.h>
...
...
@@ -32,6 +33,10 @@
#include
<net/if.h>
#endif
#ifdef HAVE_UNISTD_H
#include
<unistd.h>
#endif
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
...
...
@@ -250,7 +255,7 @@ static char *lookup_service(unsigned short port, int flags, char *buf)
else
{
struct
servent
*
se
;
char
*
proto
;
const
char
*
proto
;
if
(
flags
&
ARES_NI_UDP
)
proto
=
"udp"
;
...
...
@@ -319,7 +324,7 @@ static char *ares_striendstr(const char *s1, const char *s2)
c2
++
;
}
}
if
(
c2
==
c1
==
NULL
)
if
(
c2
==
c1
&&
c2
==
NULL
)
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