]> granicus.if.org Git - curl/commitdiff
fix compiler warning: conversion from 'int' to 'bool', possible loss of data
authorYang Tse <yangsita@gmail.com>
Wed, 28 Jan 2009 17:43:11 +0000 (17:43 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 28 Jan 2009 17:43:11 +0000 (17:43 +0000)
lib/tftp.c

index 09350ecc4a54633f83248630a5ce88d027659f50..976e5044c53bf4aab695b8751321085c680c25db 100644 (file)
@@ -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);