Problem: 1E9 is double but assigned to an int var
Solution: use the less nice but correct int constant 1000000000 instead of the shorter 1E9 to avoid a compiler warning when assigning to timespec.tv_nsec, which is a long int.
Showing
Please
register
or
sign in
to comment