X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2Flibtest%2Flib591.c;h=0a406cee0a9cd768e17d513a7d95a5fe59083284;hb=cfd75dcdb18d0a4291f48020211c65507a97d9eb;hp=7d50f894cff852a58a93896286517185add26e86;hpb=24b9957402f17c422eeeb3386bf049feeb342e78;p=platform%2Fupstream%2Fcurl.git diff --git a/tests/libtest/lib591.c b/tests/libtest/lib591.c index 7d50f89..0a406ce 100644 --- a/tests/libtest/lib591.c +++ b/tests/libtest/lib591.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2012, 2017, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -23,9 +23,7 @@ /* lib591 is used for test cases 591, 592, 593 and 594 */ -#ifdef HAVE_LIMITS_H #include -#endif #include @@ -44,15 +42,13 @@ int test(char *URL) int msgs_left; CURLMsg *msg; FILE *upload = NULL; - int error; start_test_timing(); upload = fopen(libtest_arg3, "rb"); if(!upload) { - error = ERRNO; fprintf(stderr, "fopen() failed with error: %d (%s)\n", - error, strerror(error)); + errno, strerror(errno)); fprintf(stderr, "Error opening file: (%s)\n", libtest_arg3); return TEST_ERR_FOPEN; } @@ -125,7 +121,7 @@ int test(char *URL) interval.tv_usec = 100000L; /* 100 ms */ } - select_test(maxfd+1, &fdread, &fdwrite, &fdexcep, &interval); + select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &interval); abort_on_test_timeout(); }