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
6728334e
Commit
6728334e
authored
15 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
fix warning about conversions between curl_off_t and long
parent
749fd2f9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/tftp.c
+7
-4
7 additions, 4 deletions
lib/tftp.c
with
7 additions
and
4 deletions
lib/tftp.c
+
7
−
4
View file @
6728334e
...
...
@@ -1173,8 +1173,8 @@ static long tftp_state_timeout(struct connectdata *conn, tftp_event_t *event)
}
}
static
curl_off_t
sleep_time
(
curl_off_t
rate_bps
,
curl_off_t
cur_rate_bps
,
int
pkt_size
)
static
long
sleep_time
(
curl_off_t
rate_bps
,
curl_off_t
cur_rate_bps
,
int
pkt_size
)
{
curl_off_t
min_sleep
=
0
;
curl_off_t
rv
=
0
;
...
...
@@ -1197,7 +1197,10 @@ static curl_off_t sleep_time(curl_off_t rate_bps, curl_off_t cur_rate_bps,
if
(
rv
<
min_sleep
)
rv
=
min_sleep
;
return
rv
;
if
(
rv
>
0x7fffffff
)
rv
=
0x7fffffff
;
return
(
long
)
rv
;
}
...
...
@@ -1216,7 +1219,7 @@ static CURLcode tftp_easy_statemach(struct connectdata *conn)
struct
SessionHandle
*
data
=
conn
->
data
;
tftp_state_data_t
*
state
=
(
tftp_state_data_t
*
)
conn
->
proto
.
tftpc
;
int
fd_read
;
curl_off_t
timeout_ms
;
long
timeout_ms
;
struct
SingleRequest
*
k
=
&
data
->
req
;
struct
timeval
transaction_start
=
Curl_tvnow
();
...
...
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