diff options
author | Max Dymond <max.dymond@metaswitch.com> | 2017-07-10 13:50:15 +0100 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2017-07-10 16:19:23 +0200 |
commit | e909de65b907ae2be5874201b6881a5196e68c17 (patch) | |
tree | 2b4d0b4208b0511b3ab4eaca8c311a7e211dbfa8 /tests/libtest/lib582.c | |
parent | a5834e525deb6d233990ae2288b156728db32cec (diff) |
tests: Fix up issues with errno in test files
Closes https://github.com/curl/curl/pull/1671
Diffstat (limited to 'tests/libtest/lib582.c')
-rw-r--r-- | tests/libtest/lib582.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libtest/lib582.c b/tests/libtest/lib582.c index d7e4dd1bf..23772be59 100644 --- a/tests/libtest/lib582.c +++ b/tests/libtest/lib582.c @@ -244,7 +244,7 @@ int test(char *URL) hd_src = fopen(libtest_arg2, "rb"); if(NULL == hd_src) { - error = ERRNO; + error = errno; fprintf(stderr, "fopen() failed with error: %d (%s)\n", error, strerror(error)); fprintf(stderr, "Error opening file: (%s)\n", libtest_arg2); @@ -255,7 +255,7 @@ int test(char *URL) hd = fstat(fileno(hd_src), &file_info); if(hd == -1) { /* can't open file, bail out */ - error = ERRNO; + error = errno; fprintf(stderr, "fstat() failed with error: %d (%s)\n", error, strerror(error)); fprintf(stderr, "ERROR: cannot open file (%s)\n", libtest_arg2); |