diff options
author | mef <mef@pkgsrc.org> | 2016-02-01 13:13:10 +0000 |
---|---|---|
committer | mef <mef@pkgsrc.org> | 2016-02-01 13:13:10 +0000 |
commit | 56e554c8d650c796910d617fa3eec5dc49b04223 (patch) | |
tree | 8694b43d0e7aaa022be8bc67f982476720e0cfe8 /www/curl/patches | |
parent | 9f5c015e78ab04301565dd8fa0b8188381693e55 (diff) | |
download | pkgsrc-56e554c8d650c796910d617fa3eec5dc49b04223.tar.gz |
Add minor typo fix in doc/example for make test to pass
Diffstat (limited to 'www/curl/patches')
-rw-r--r-- | www/curl/patches/patch-doc_examples_getredirect_c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/www/curl/patches/patch-doc_examples_getredirect_c b/www/curl/patches/patch-doc_examples_getredirect_c new file mode 100644 index 00000000000..8f8fbc86874 --- /dev/null +++ b/www/curl/patches/patch-doc_examples_getredirect_c @@ -0,0 +1,17 @@ +$NetBSD: patch-doc_examples_getredirect_c,v 1.1 2016/02/01 13:13:10 mef Exp $ + +Simple typo in examle code, but this needs make test to pass +(when PKGSRC_TEST_RUN= yes). +I've reported this to upstream. + +--- 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"); + } |