mirror of https://github.com/OpenVPN/openvpn-gui
echo.c: Avoid -Wsign-compare with MinGW on 32bit systems
echo.c:221:72: error: comparison of integer expressions of different signedness: ‘long unsigned int’ and ‘time_t’ {aka ‘long int’} [-Werror=sign-compare] Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>master
parent
91b0b1e5be
commit
5f844605ee
3
echo.c
3
echo.c
|
@ -218,7 +218,8 @@ echo_msg_repeated(const struct echo_msg *msg)
|
|||
const struct echo_msg_history *hist;
|
||||
|
||||
hist = echo_msg_recall(msg->fp.digest, msg->history);
|
||||
return (hist && (hist->fp.timestamp + o.popup_mute_interval * 3600 > msg->fp.timestamp));
|
||||
return (hist
|
||||
&& (hist->fp.timestamp + (time_t)(o.popup_mute_interval * 3600) > msg->fp.timestamp));
|
||||
}
|
||||
|
||||
/* Append a line of echo msg */
|
||||
|
|
Loading…
Reference in New Issue