There is a minor issue with using the new `nanosleep()` function: When compiling with the `sys/time.h` header instead of `time.h`, a warning is thrown about `nanosleep()` being implicitly declared when it is called on line 309. This can be fixed by adding the `nanosleep()` prototype to ping.c, but this triggers the warning "externs should be avoided in .c files" from `checkpatch.pl`. Is there a third and better option, or should it be left as-is?
Noah Peterson (1): batctl: ping: Add millisecond precision to ping interval
ping.c | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-)