Created attachment 15161 [details] [review]
Include unistd.h for usleep prototype.
Also add braces around nested if/else.
Created attachment 17732 [details] [review]
Fixed in commit 565c1ad65277080968c188a635dfd743be7ea2a3