[0/1] batctl: ping: Add millisecond precision to ping interval

Message ID 20241018214713.91598-1-NoahBPeterson1997@gmail.com (mailing list archive)
Headers
Series batctl: ping: Add millisecond precision to ping interval |

Message

Noah Peterson Oct. 18, 2024, 9:47 p.m. UTC
  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(-)