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
04ea4b4d
Commit
04ea4b4d
authored
20 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
silence warnings on win32 about static functions that are never used
parent
5b6b6283
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
+17
-6
17 additions, 6 deletions
ares/ares_init.c
with
17 additions
and
6 deletions
ares/ares_init.c
+
17
−
6
View file @
04ea4b4d
...
...
@@ -54,19 +54,22 @@ static int init_by_options(ares_channel channel, struct ares_options *options,
static
int
init_by_environment
(
ares_channel
channel
);
static
int
init_by_resolv_conf
(
ares_channel
channel
);
static
int
init_by_defaults
(
ares_channel
channel
);
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
);
static
int
config_nameserver
(
struct
server_state
**
servers
,
int
*
nservers
,
char
*
str
);
static
int
config_sortlist
(
struct
apattern
**
sortlist
,
int
*
nsort
,
const
char
*
str
);
static
int
set_search
(
ares_channel
channel
,
const
char
*
str
);
static
int
set_options
(
ares_channel
channel
,
const
char
*
str
);
static
char
*
try_config
(
char
*
s
,
const
char
*
opt
);
static
const
char
*
try_option
(
const
char
*
p
,
const
char
*
q
,
const
char
*
opt
);
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
);
static
int
config_sortlist
(
struct
apattern
**
sortlist
,
int
*
nsort
,
const
char
*
str
);
static
char
*
try_config
(
char
*
s
,
const
char
*
opt
);
#endif
int
ares_init
(
ares_channel
*
channelptr
)
{
...
...
@@ -709,6 +712,7 @@ static int init_by_defaults(ares_channel channel)
return
ARES_SUCCESS
;
}
#ifndef WIN32
static
int
config_domain
(
ares_channel
channel
,
char
*
str
)
{
char
*
q
;
...
...
@@ -749,6 +753,8 @@ static int config_lookup(ares_channel channel, const char *str,
return
(
channel
->
lookups
)
?
ARES_SUCCESS
:
ARES_ENOMEM
;
}
#endif
static
int
config_nameserver
(
struct
server_state
**
servers
,
int
*
nservers
,
char
*
str
)
{
...
...
@@ -810,6 +816,7 @@ static int config_nameserver(struct server_state **servers, int *nservers,
return
ARES_SUCCESS
;
}
#ifndef WIN32
static
int
config_sortlist
(
struct
apattern
**
sortlist
,
int
*
nsort
,
const
char
*
str
)
{
...
...
@@ -856,6 +863,7 @@ static int config_sortlist(struct apattern **sortlist, int *nsort,
return
ARES_SUCCESS
;
}
#endif
static
int
set_search
(
ares_channel
channel
,
const
char
*
str
)
{
...
...
@@ -937,6 +945,7 @@ static int set_options(ares_channel channel, const char *str)
return
ARES_SUCCESS
;
}
#ifndef WIN32
static
char
*
try_config
(
char
*
s
,
const
char
*
opt
)
{
size_t
len
;
...
...
@@ -950,6 +959,8 @@ static char *try_config(char *s, const char *opt)
return
s
;
}
#endif
static
const
char
*
try_option
(
const
char
*
p
,
const
char
*
q
,
const
char
*
opt
)
{
size_t
len
=
strlen
(
opt
);
...
...
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