babeld: Remove return value for gettime()

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
This commit is contained in:
Donald Sharp 2022-08-17 19:01:30 -04:00
parent ef03888333
commit c392d9f487
2 changed files with 3 additions and 3 deletions

View File

@ -227,10 +227,10 @@ if_eui64(int ifindex, unsigned char *eui)
/* Like gettimeofday, but returns monotonic time. If POSIX clocks are not /* Like gettimeofday, but returns monotonic time. If POSIX clocks are not
available, falls back to gettimeofday but enforces monotonicity. */ available, falls back to gettimeofday but enforces monotonicity. */
int void
gettime(struct timeval *tv) gettime(struct timeval *tv)
{ {
return monotime(tv); monotime(tv);
} }
/* If /dev/urandom doesn't exist, this will fail with ENOENT, which the /* If /dev/urandom doesn't exist, this will fail with ENOENT, which the

View File

@ -43,7 +43,7 @@ int kernel_route(enum babel_kernel_routes operation, const unsigned char *dest,
unsigned int metric, const unsigned char *newgate, unsigned int metric, const unsigned char *newgate,
int newifindex, unsigned int newmetric); int newifindex, unsigned int newmetric);
int if_eui64(int ifindex, unsigned char *eui); int if_eui64(int ifindex, unsigned char *eui);
int gettime(struct timeval *tv); void gettime(struct timeval *tv);
int read_random_bytes(void *buf, size_t len); int read_random_bytes(void *buf, size_t len);
#endif /* BABEL_KERNEL_H */ #endif /* BABEL_KERNEL_H */