mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
unit1303: fix compiler warning
MinGW-w64 complains: warning: conversion to 'long int' from 'time_t {aka long long int}' may alter its value [-Wconversion] Fix this by using the correct type.
This commit is contained in:
parent
2af10b2c0b
commit
05c9f42e52
@ -64,14 +64,14 @@ struct timetest {
|
|||||||
int timeout_ms;
|
int timeout_ms;
|
||||||
int connecttimeout_ms;
|
int connecttimeout_ms;
|
||||||
bool connecting;
|
bool connecting;
|
||||||
long result;
|
time_t result;
|
||||||
const char *comment;
|
const char *comment;
|
||||||
};
|
};
|
||||||
|
|
||||||
UNITTEST_START
|
UNITTEST_START
|
||||||
{
|
{
|
||||||
struct timeval now;
|
struct timeval now;
|
||||||
long timeout;
|
time_t timeout;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
const struct timetest run[] = {
|
const struct timetest run[] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user