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
d9e71809
Commit
d9e71809
authored
13 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
asyn-thread: fix compiler warning
compiler warning: variable is initialized but not referenced
parent
a7cc54a5
No related branches found
Branches containing commit
Tags
curl-7_47_1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/asyn-thread.c
+2
-4
2 additions, 4 deletions
lib/asyn-thread.c
with
2 additions
and
4 deletions
lib/asyn-thread.c
+
2
−
4
View file @
d9e71809
...
...
@@ -486,7 +486,6 @@ CURLcode Curl_resolver_wait_resolv(struct connectdata *conn,
struct
Curl_dns_entry
**
entry
)
{
struct
thread_data
*
td
=
(
struct
thread_data
*
)
conn
->
async
.
os_specific
;
struct
SessionHandle
*
data
=
conn
->
data
;
CURLcode
rc
=
CURLE_OK
;
DEBUGASSERT
(
conn
&&
td
);
...
...
@@ -638,7 +637,6 @@ Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn,
int
error
;
char
sbuf
[
NI_MAXSERV
];
int
pf
=
PF_INET
;
struct
SessionHandle
*
data
=
conn
->
data
;
*
waitp
=
0
;
/* default to synchronous response */
...
...
@@ -677,12 +675,12 @@ Curl_addrinfo *Curl_resolver_getaddrinfo(struct connectdata *conn,
}
/* fall-back to blocking version */
infof
(
data
,
"init_resolve_thread() failed for %s; %s
\n
"
,
infof
(
conn
->
data
,
"init_resolve_thread() failed for %s; %s
\n
"
,
hostname
,
Curl_strerror
(
conn
,
ERRNO
));
error
=
Curl_getaddrinfo_ex
(
hostname
,
sbuf
,
&
hints
,
&
res
);
if
(
error
)
{
infof
(
data
,
"getaddrinfo() failed for %s:%d; %s
\n
"
,
infof
(
conn
->
data
,
"getaddrinfo() failed for %s:%d; %s
\n
"
,
hostname
,
port
,
Curl_strerror
(
conn
,
SOCKERRNO
));
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