> Date: Tue, 10 Jun 2014 00:55:14 +0100 > From: Pádraig Brady <p...@draigbrady.com> > CC: bug-gnulib@gnu.org > > > + /* How much is left to wait? */ > > + if (wait_timeout != INFINITE) > > + { > > + wait_timeout = tend - clock (); > > + if (wait_timeout < 0) > > + wait_timeout = 0; > > Strange indenting here.
Wasn't there a TAB there? > More importantly DWORD is an unsigned type according to a quick search, > so the < 0 check is incorrect? Right you are. So this should be something like clock_t tnow = clock (); if (tend >= tnow) wait_timeout = tend - tnow; else wait_timeout = 0; Thanks.