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 | |
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')
-rw-r--r-- | www/curl/distinfo | 3 | ||||
-rw-r--r-- | www/curl/patches/patch-doc_examples_getredirect_c | 17 |
2 files changed, 19 insertions, 1 deletions
diff --git a/www/curl/distinfo b/www/curl/distinfo index 24897f62667..28b65cb518e 100644 --- a/www/curl/distinfo +++ b/www/curl/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.112 2016/01/28 11:46:02 mef Exp $ +$NetBSD: distinfo,v 1.113 2016/02/01 13:13:10 mef Exp $ SHA1 (curl-7.47.0.tar.bz2) = 0f8112c50acf1c3896906643adb7f1aeb9b8b633 RMD160 (curl-7.47.0.tar.bz2) = 5f4a9f97d3788ee93025be069b5bf43e85044787 @@ -6,4 +6,5 @@ SHA512 (curl-7.47.0.tar.bz2) = cd85b7c46b693e0d0f50c42030c9e63de98ac9a61183dcf89 Size (curl-7.47.0.tar.bz2) = 3498935 bytes SHA1 (patch-aa) = 793701d5ecc3343170fb437906c9adb74763cd13 SHA1 (patch-curl-config.in) = d0cc7bb6a5bf0b9257f40dcffce7093cc0098eb7 +SHA1 (patch-doc_examples_getredirect_c) = 3c8235ef938f6920008f18f4583a9d47b12cda47 SHA1 (patch-lib_hostcheck.c) = 8e772d3f91cdafae17281cc19004269ece0cf308 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"); + } |