Curl_timeleft: change return type to timediff_t #2021

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
1 participant
Owner

bagder commented Oct 26, 2017

returning 'time_t' was problematic when that type is unsigned and we
check values less than zero to detect "already expired" on several
places in the code.

Curl_timeleft: change return type to timediff_t
returning 'time_t' was problematic when that type is unsigned and we
check values less than zero to detect "already expired" on several
places in the code.

@bagder bagder closed this in 0d85eed Oct 28, 2017

@bagder bagder deleted the bagder/timeleft-timediff_t branch Oct 29, 2017

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