From 6e34c2d59a96b406a76d8922561a9d57c55e0dbc Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 28 Jan 2009 17:43:11 +0000 Subject: fix compiler warning: conversion from 'int' to 'bool', possible loss of data --- lib/tftp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/tftp.c b/lib/tftp.c index 09350ecc4..976e5044c 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -204,7 +204,7 @@ static CURLcode tftp_set_timeouts(tftp_state_data_t *state) { time_t maxtime, timeout; long timeout_ms; - const bool start = (state->state == TFTP_STATE_START); + bool start = (bool)(state->state == TFTP_STATE_START); time(&state->start_time); -- cgit v1.2.3