Skip to content

timeouts: move ms timeouts to timediff_t from int and long - #5490

Closed
mback2k wants to merge 1 commit into
curl:masterfrom
mback2k:conv-timediff_t
Closed

timeouts: move ms timeouts to timediff_t from int and long#5490
mback2k wants to merge 1 commit into
curl:masterfrom
mback2k:conv-timediff_t

Conversation

@mback2k

@mback2k mback2k commented May 30, 2020

Copy link
Copy Markdown
Member

Now that all functions in select.[ch] take timediff_t instead
of the limited time_t or int, we can remove type conversions
and related preprocessor checks to silence compiler warnings.

@bagder

bagder commented May 30, 2020

Copy link
Copy Markdown
Member

This looks like a pretty wide overlap with #5479 ...

@bagder

bagder commented May 30, 2020

Copy link
Copy Markdown
Member

I propose I merge that first and then you can rebase this to remove the duplicates and we can focus on what isn't overlaps!

@mback2k

mback2k commented May 30, 2020

Copy link
Copy Markdown
Member Author

This looks like a pretty wide overlap with #5479 ...

Looks like that. I just took this from my now obsolete old PR #5262.

@mback2k

mback2k commented May 30, 2020

Copy link
Copy Markdown
Member Author

I propose I merge that first and then you can rebase this to remove the duplicates and we can focus on what isn't overlaps!

I am fine with that. Thanks!

@mback2k
mback2k force-pushed the conv-timediff_t branch from b5cb158 to 64c4883 Compare May 31, 2020 17:47
@mback2k
mback2k force-pushed the conv-timediff_t branch from 64c4883 to 26d55f6 Compare May 31, 2020 17:58
@mback2k
mback2k marked this pull request as ready for review May 31, 2020 17:58
@mback2k
mback2k requested a review from bagder May 31, 2020 17:58
@mback2k

mback2k commented May 31, 2020

Copy link
Copy Markdown
Member Author

@bagder please take another look. I updated this PR to include asyn-ares.c and telnet.c.

@mback2k
mback2k marked this pull request as ready for review May 31, 2020 18:14
@mback2k
mback2k force-pushed the conv-timediff_t branch from 26d55f6 to c00807c Compare May 31, 2020 18:15
@mback2k mback2k changed the title lib: remove obsolete type conversions to time_t or int timeouts: move ms timeouts to timediff_t from int May 31, 2020
@mback2k
mback2k force-pushed the conv-timediff_t branch from c00807c to d1ef261 Compare June 1, 2020 06:49
Now that all functions in select.[ch] take timediff_t instead
of the limited int or long, we can remove type conversions
and related preprocessor checks to silence compiler warnings.

Avoiding conversions from time_t was already done in 842f73d.

Based upon curl#5262
Supersedes curl#5214, curl#5220 and curl#5221
Follow up to curl#5343 and curl#5479
Closes curl#5490
@mback2k
mback2k force-pushed the conv-timediff_t branch from d1ef261 to b598544 Compare June 5, 2020 17:41
@mback2k mback2k changed the title timeouts: move ms timeouts to timediff_t from int timeouts: move ms timeouts to timediff_t from int and long Jun 5, 2020
@mback2k mback2k closed this in 3186f50 Jun 6, 2020
@mback2k

mback2k commented Jun 6, 2020

Copy link
Copy Markdown
Member Author

Merged now, because except 1 unrelated Windows build all CIs were green, including the c-ares builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants