time_t can be defined as signed int on some platforms (e.g. my 32-bit ubuntu 14.04 with libc 2.19 and gcc 4.8.4), generating compilation error when being compared with uint32_t.
It would be more correct to define t the same type as tv.tv_sec, i.e. time_t.
time_t
can be defined as signed int on some platforms (e.g. my 32-bit ubuntu 14.04 with libc 2.19 and gcc 4.8.4), generating compilation error when being compared withuint32_t
.It would be more correct to define
t
the same type astv.tv_sec
, i.e.time_t
.