"int" is not a suitable type to hold time()'s return value. Coverity ID: 1509376 Signed-off-by: Jan Beulich <jbeul...@suse.com> --- I was on the edge of switching to using difftime() at this occasion as well. This would then also allow switching "seconds" to unsigned int (or any other suitable unsigned type).
--- a/tools/console/client/main.c +++ b/tools/console/client/main.c @@ -102,7 +102,7 @@ static int get_pty_fd(struct xs_handle * struct timeval tv; fd_set watch_fdset; int xs_fd = xs_fileno(xs), pty_fd = -1; - int start, now; + time_t start, now; unsigned int len = 0; char *pty_path, **watch_paths;