]> git.ipfire.org Git - thirdparty/curl.git/commit
asyn-ares: remove typecast, fix expire
authorDaniel Stenberg <daniel@haxx.se>
Thu, 3 Oct 2024 21:53:10 +0000 (23:53 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 4 Oct 2024 12:08:09 +0000 (14:08 +0200)
commit6f454bab750751d0cb9d55fcbeff18d6435ccc3e
tree820fa969b87761f54cff90ddcba46dc7266a4142
parentb531e33070bf92c4185d2a80794e28d5df5fc7f1
asyn-ares: remove typecast, fix expire

- Use the appropriate variable type for the curlx_tvtoms() return code:
  timediff_t and remove the typecast.

- Simplify the function and avoid the odd expire adjustment that
  probably is a rest from ancient days when the expire function did not
  handle zero millisecond timeouts.

Closes #15145
lib/asyn-ares.c