]> granicus.if.org Git - curl/commit
test1521: fix compiler warnings
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sat, 24 Jun 2017 14:39:27 +0000 (16:39 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Sun, 25 Jun 2017 11:46:51 +0000 (13:46 +0200)
commite8a4da67f5d041f6fac0a1fea20d58bf5f151691
tree6aee9642ae16b601fe7a675ae37e105c82bae4d0
parentceff21ab76f83e7ba83dbba79eecd67e49fa414c
test1521: fix compiler warnings

The integer literal 3123123123 doesn't fit into a 32-bit signed
integer, so GCC with 32-bit long warns in C90 mode:
this decimal constant is unsigned only in ISO C90 [enabled by default]
Fix this by using ULONG_MAX, which should fit in any curl_off_t and has
the correct suffix to not issue any warnings.
Also adds the missing CURLOPT_REQUEST_TARGET from commit
9b167fd090f596eac828817d48c247eeae53407f.

Closes https://github.com/curl/curl/pull/1611
tests/libtest/lib1521.c
tests/libtest/mk-lib1521.pl