Skip to content

Commit

Permalink
unit1303: fix compiler warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MarcelRaad committed Apr 16, 2017
1 parent 2af10b2 commit 05c9f42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/unit1303.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down

0 comments on commit 05c9f42

Please sign in to comment.