diff options
| author | Marcel Raad <raad@teamviewer.com> | 2017-04-16 13:54:21 +0200 | 
|---|---|---|
| committer | Marcel Raad <raad@teamviewer.com> | 2017-04-16 13:54:21 +0200 | 
| commit | 05c9f42e52d02448664d794cb64a91f36ac39296 (patch) | |
| tree | 9eea5225905f0e0ed6dae7b5f44167ac00e1d037 | |
| parent | 2af10b2c0b6a4ce34b5c6649387d2a1286a6de02 (diff) | |
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.
| -rw-r--r-- | tests/unit/unit1303.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/unit1303.c b/tests/unit/unit1303.c index c39e147aa..10206ff6b 100644 --- a/tests/unit/unit1303.c +++ b/tests/unit/unit1303.c @@ -64,14 +64,14 @@ struct timetest {    int timeout_ms;    int connecttimeout_ms;    bool connecting; -  long result; +  time_t result;    const char *comment;  };  UNITTEST_START  {    struct timeval now; -  long timeout; +  time_t timeout;    unsigned int i;    const struct timetest run[] = {  | 
