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
8511b643
Commit
8511b643
authored
14 years ago
by
Stefan Krause
Committed by
Kamil Dudka
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
transfer: avoid insane conversion of time_t
parent
17de1cc3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/file.c
+1
-1
1 addition, 1 deletion
lib/file.c
lib/transfer.c
+1
-1
1 addition, 1 deletion
lib/transfer.c
lib/transfer.h
+1
-1
1 addition, 1 deletion
lib/transfer.h
with
3 additions
and
3 deletions
lib/file.c
+
1
−
1
View file @
8511b643
...
...
@@ -464,7 +464,7 @@ static CURLcode file_do(struct connectdata *conn, bool *done)
}
if
(
fstated
&&
!
data
->
state
.
range
&&
data
->
set
.
timecondition
)
{
if
(
!
Curl_meets_timecondition
(
data
,
data
->
info
.
filetime
))
{
if
(
!
Curl_meets_timecondition
(
data
,
(
time_t
)
data
->
info
.
filetime
))
{
*
done
=
TRUE
;
return
CURLE_OK
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/transfer.c
+
1
−
1
View file @
8511b643
...
...
@@ -359,7 +359,7 @@ static void read_rewind(struct connectdata *conn,
* Check to see if CURLOPT_TIMECONDITION was met by comparing the time of the
* remote document with the time provided by CURLOPT_TIMEVAL
*/
bool
Curl_meets_timecondition
(
struct
SessionHandle
*
data
,
long
timeofdoc
)
bool
Curl_meets_timecondition
(
struct
SessionHandle
*
data
,
time_t
timeofdoc
)
{
if
((
timeofdoc
==
0
)
||
(
data
->
set
.
timevalue
==
0
))
return
TRUE
;
...
...
This diff is collapsed.
Click to expand it.
lib/transfer.h
+
1
−
1
View file @
8511b643
...
...
@@ -47,7 +47,7 @@ CURLcode Curl_readrewind(struct connectdata *conn);
CURLcode
Curl_fillreadbuffer
(
struct
connectdata
*
conn
,
int
bytes
,
int
*
nreadp
);
CURLcode
Curl_reconnect_request
(
struct
connectdata
**
connp
);
CURLcode
Curl_retry_request
(
struct
connectdata
*
conn
,
char
**
url
);
bool
Curl_meets_timecondition
(
struct
SessionHandle
*
data
,
long
timeofdoc
);
bool
Curl_meets_timecondition
(
struct
SessionHandle
*
data
,
time_t
timeofdoc
);
/* This sets up a forthcoming transfer */
void
...
...
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