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
bdf17244
Commit
bdf17244
authored
16 years ago
by
Yang Tse
Browse files
Options
Downloads
Patches
Plain Diff
take 2 at fixing compiler warning: argument might be clobbered by `longjmp' or `vfork'
parent
9cea2dfb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/hostip.c
+4
-2
4 additions, 2 deletions
lib/hostip.c
lib/hostip.h
+1
-1
1 addition, 1 deletion
lib/hostip.h
with
5 additions
and
3 deletions
lib/hostip.c
+
4
−
2
View file @
bdf17244
...
...
@@ -524,7 +524,7 @@ int Curl_resolv_timeout(struct connectdata *conn,
const
char
*
hostname
,
int
port
,
struct
Curl_dns_entry
**
entry
,
volatile
long
timeout
)
long
timeout
ms
)
{
#ifdef USE_ALARM_TIMEOUT
#ifdef HAVE_SIGACTION
...
...
@@ -536,7 +536,7 @@ int Curl_resolv_timeout(struct connectdata *conn,
void
(
*
keep_sigact
)(
int
);
/* store the old handler here */
#endif
/* HAVE_SIGNAL */
#endif
/* HAVE_SIGACTION */
volatile
long
timeout
;
unsigned
int
prev_alarm
=
0
;
struct
SessionHandle
*
data
=
conn
->
data
;
#endif
/* USE_ALARM_TIMEOUT */
...
...
@@ -548,6 +548,8 @@ int Curl_resolv_timeout(struct connectdata *conn,
if
(
data
->
set
.
no_signal
)
/* Ignore the timeout when signals are disabled */
timeout
=
0
;
else
timeout
=
timeoutms
;
if
(
timeout
&&
timeout
<
1000
)
/* The alarm() function only provides integer second resolution, so if
...
...
This diff is collapsed.
Click to expand it.
lib/hostip.h
+
1
−
1
View file @
bdf17244
...
...
@@ -166,7 +166,7 @@ int Curl_resolv(struct connectdata *conn, const char *hostname,
int
port
,
struct
Curl_dns_entry
**
dnsentry
);
int
Curl_resolv_timeout
(
struct
connectdata
*
conn
,
const
char
*
hostname
,
int
port
,
struct
Curl_dns_entry
**
dnsentry
,
volatile
long
timeout
);
long
timeout
ms
);
/*
* Curl_ipvalid() checks what CURL_IPRESOLVE_* requirements that might've
...
...
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