From: Yang Tse Date: Wed, 28 Jan 2009 17:43:11 +0000 (+0000) Subject: fix compiler warning: conversion from 'int' to 'bool', possible loss of data X-Git-Tag: curl-7_19_4~88 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6e34c2d59a96b406a76d8922561a9d57c55e0dbc;p=thirdparty%2Fcurl.git fix compiler warning: conversion from 'int' to 'bool', possible loss of data --- diff --git a/lib/tftp.c b/lib/tftp.c index 09350ecc4a..976e5044c5 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);