summaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-07-28 15:49:36 +0200
committerng0 <ng0@infotropique.org>2017-08-22 15:29:45 +0000
commit449f6d6a29420d8b0233105221dbce6f9c4f5999 (patch)
tree40f4cff81fd98411d561cf0c81d93db56c4dbcdc /tests/server
parent4f5c72597bd0d86d1c8164a0ec3ea73d1ec72a35 (diff)
downloadgnurl-449f6d6a29420d8b0233105221dbce6f9c4f5999.tar.gz
gnurl-449f6d6a29420d8b0233105221dbce6f9c4f5999.tar.bz2
gnurl-449f6d6a29420d8b0233105221dbce6f9c4f5999.zip
timeval: struct curltime is a struct timeval replacement
... to make all libcurl internals able to use the same data types for the struct members. The timeval struct differs subtly on several platforms so it makes it cumbersome to use everywhere. Ref: #1652 Closes #1693
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/server/util.c b/tests/server/util.c
index a2340f462..105bb12fe 100644
--- a/tests/server/util.c
+++ b/tests/server/util.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, 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
@@ -100,7 +100,7 @@ void logmsg(const char *msg, ...)
char buffer[2048 + 1];
FILE *logfp;
int error;
- struct timeval tv;
+ struct curltime tv;
time_t sec;
struct tm *now;
char timebuf[20];
@@ -211,9 +211,9 @@ int wait_ms(int timeout_ms)
{
#if !defined(MSDOS) && !defined(USE_WINSOCK)
#ifndef HAVE_POLL_FINE
- struct timeval pending_tv;
+ struct curltime pending_tv;
#endif
- struct timeval initial_tv;
+ struct curltime initial_tv;
int pending_ms;
int error;
#endif