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
9406e517
Commit
9406e517
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
silence win32 compiler warnings
parent
4a560492
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_init.c
+5
-2
5 additions, 2 deletions
ares/ares_init.c
with
5 additions
and
2 deletions
ares/ares_init.c
+
5
−
2
View file @
9406e517
...
...
@@ -60,9 +60,9 @@ static int config_nameserver(struct server_state **servers, int *nservers,
static
int
set_search
(
ares_channel
channel
,
const
char
*
str
);
static
int
set_options
(
ares_channel
channel
,
const
char
*
str
);
static
const
char
*
try_option
(
const
char
*
p
,
const
char
*
q
,
const
char
*
opt
);
#ifndef WIN32
static
int
ip_addr
(
const
char
*
s
,
int
len
,
struct
in_addr
*
addr
);
static
void
natural_mask
(
struct
apattern
*
pat
);
#ifndef WIN32
static
int
config_domain
(
ares_channel
channel
,
char
*
str
);
static
int
config_lookup
(
ares_channel
channel
,
const
char
*
str
,
const
char
*
bindch
,
const
char
*
filech
);
...
...
@@ -267,7 +267,8 @@ static int get_res_nt(HKEY hKey, const char *subkey, char **obuf)
if
(
!*
obuf
)
return
0
;
if
(
RegQueryValueEx
(
hKey
,
subkey
,
0
,
NULL
,
*
obuf
,
&
size
)
!=
ERROR_SUCCESS
)
if
(
RegQueryValueEx
(
hKey
,
subkey
,
0
,
NULL
,
(
LPBYTE
)
*
obuf
,
&
size
)
!=
ERROR_SUCCESS
)
{
free
(
*
obuf
);
return
0
;
...
...
@@ -967,6 +968,7 @@ static const char *try_option(const char *p, const char *q, const char *opt)
return
((
size_t
)(
q
-
p
)
>
len
&&
!
strncmp
(
p
,
opt
,
len
))
?
&
p
[
len
]
:
NULL
;
}
#ifndef WIN32
static
int
ip_addr
(
const
char
*
s
,
int
len
,
struct
in_addr
*
addr
)
{
char
ipbuf
[
16
];
...
...
@@ -1002,3 +1004,4 @@ static void natural_mask(struct apattern *pat)
else
pat
->
mask
.
s_addr
=
htonl
(
IN_CLASSC_NET
);
}
#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