aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2019-01-27 01:43:57 -0800
committerShuah Khan <[email protected]>2019-02-13 08:52:42 -0700
commited492c2ad46450791c80f5e260f48d36e3a044eb (patch)
tree08c1c7c9547999d21eb9f458a9a3466f4219c793 /lib/test_overflow.c
parent121e357ac72836662cc13598d0e835fe846f1c95 (diff)
selftests/seccomp: Actually sleep for 1/10th second
Clang noticed that some none-zero sleep()s were actually using zero anyway. This switches to nanosleep() to gain sub-second granularity. seccomp_bpf.c:2625:9: warning: implicit conversion from 'double' to 'unsigned int' changes value from 0.1 to 0 [-Wliteral-conversion] sleep(0.1); ~~~~~ ^~~ Signed-off-by: Kees Cook <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions