diff options
author | Yang Tse <yangsita@gmail.com> | 2013-01-09 15:10:23 +0100 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2013-01-09 22:23:50 +0100 |
commit | a6848250d279026252aa35cd9f93fafccc76333c (patch) | |
tree | 6cec3bacd94bd87c52b9e4bd3b73fe47704fbd3d /tests/server/fake_ntlm.c | |
parent | a9ca5e61e533def9e430597e36d70e96aee8e27a (diff) | |
download | curl-a6848250d279026252aa35cd9f93fafccc76333c.tar.gz |
test servers: fix errno, ERRNO and SOCKERRNO usage for W32/W64
Diffstat (limited to 'tests/server/fake_ntlm.c')
-rw-r--r-- | tests/server/fake_ntlm.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/server/fake_ntlm.c b/tests/server/fake_ntlm.c index 64f0675e7..799f573af 100644 --- a/tests/server/fake_ntlm.c +++ b/tests/server/fake_ntlm.c @@ -6,7 +6,7 @@ * \___|\___/|_| \_\_____| * * Copyright (C) 2010, Mandy Wu, <mandy.wu@intel.com> - * Copyright (C) 2011 - 2012, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 2011 - 2013, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -184,7 +184,7 @@ int main(int argc, char *argv[]) filename = test2file(testnum); stream=fopen(filename, "rb"); if(!stream) { - error = ERRNO; + error = errno; logmsg("fopen() failed with error: %d %s", error, strerror(error)); logmsg("Error opening file: %s", filename); logmsg("Couldn't open test file %ld", testnum); @@ -202,7 +202,7 @@ int main(int argc, char *argv[]) stream=fopen(filename, "rb"); if(!stream) { - error = ERRNO; + error = errno; logmsg("fopen() failed with error: %d %s", error, strerror(error)); logmsg("Error opening file: %s", filename); logmsg("Couldn't open test file %ld", testnum); @@ -222,7 +222,7 @@ int main(int argc, char *argv[]) if(strcmp(buf, type1_input) == 0) { stream=fopen(filename, "rb"); if(!stream) { - error = ERRNO; + error = errno; logmsg("fopen() failed with error: %d %s", error, strerror(error)); logmsg("Error opening file: %s", filename); logmsg("Couldn't open test file %ld", testnum); @@ -243,7 +243,7 @@ int main(int argc, char *argv[]) else if(strncmp(buf, type3_input, strlen(type3_input)) == 0) { stream=fopen(filename, "rb"); if(!stream) { - error = ERRNO; + error = errno; logmsg("fopen() failed with error: %d %s", error, strerror(error)); logmsg("Error opening file: %s", filename); logmsg("Couldn't open test file %ld", testnum); |