From e909de65b907ae2be5874201b6881a5196e68c17 Mon Sep 17 00:00:00 2001 From: Max Dymond Date: Mon, 10 Jul 2017 13:50:15 +0100 Subject: tests: Fix up issues with errno in test files Closes https://github.com/curl/curl/pull/1671 --- tests/libtest/lib591.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/libtest/lib591.c') diff --git a/tests/libtest/lib591.c b/tests/libtest/lib591.c index 7d50f894c..c04d3fbae 100644 --- a/tests/libtest/lib591.c +++ b/tests/libtest/lib591.c @@ -50,7 +50,7 @@ int test(char *URL) upload = fopen(libtest_arg3, "rb"); if(!upload) { - error = ERRNO; + error = errno; fprintf(stderr, "fopen() failed with error: %d (%s)\n", error, strerror(error)); fprintf(stderr, "Error opening file: (%s)\n", libtest_arg3); -- cgit v1.2.3