curl-users
typo on example makes 'make check' to fail.
From: Makoto Fujiwara <makoto_at_ki.nu>
Date: Mon, 01 Feb 2016 22:13:58 +0900
Date: Mon, 01 Feb 2016 22:13:58 +0900
Hi, thanks for supporting curl, it is one of the most
frequent used package for our community, thanks.
By the way, I'm compiling 7.47.0 and also checked with
make check.
It turned out minor typo is in in docs/examples/getredirect.c
and I needed attached patch for make test to pass,
My environment: NetBSD/amd64 7.99.25
Thanks a lot,
--- Makoto Fujiwara, mef_at_NetBSD Chiba, Japan, Narita Airport and Disneyland prefecture. http://www.ki.nu/~makoto/pkgsrc/check-update/00_Summary.html Key fingerprint = 0BFA FAEB EAD1 90BA 7498 8F85 6809 9E0B B7EF A12E $NetBSD$ Simple type for examle code, but this need make test to pass (when PKGSRC_TEST_RUN= yes). --- docs/examples/getredirect.c~ 2016-01-15 00:37:49.000000000 +0900 +++ docs/examples/getredirect.c 2016-02-01 21:52:01.000000000 +0900 @@ -48,7 +48,7 @@ int main(void) else { res = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response_code); if((res == CURLE_OK) && - ((code / 100) != 3)) { + ((response_code / 100) != 3)) { /* a redirect implies a 3xx response code */ fprintf(stderr, "Not a redirect.\n"); } ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-users FAQ: http://curl.haxx.se/docs/faq.html Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2016-02-01