diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2022-08-17 19:01:30 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2022-08-24 08:30:27 -0400 | 
| commit | c392d9f48704616610830c8efcb4ccbd936855d5 (patch) | |
| tree | 06911daf425e63d5f79f06d36db3085a91dd8ea0 /babeld | |
| parent | ef03888333a27769311cf75a5d17a128caa00a61 (diff) | |
babeld: Remove return value for gettime()
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'babeld')
| -rw-r--r-- | babeld/kernel.c | 4 | ||||
| -rw-r--r-- | babeld/kernel.h | 2 | 
2 files changed, 3 insertions, 3 deletions
diff --git a/babeld/kernel.c b/babeld/kernel.c index 3941db8d5f..5aa01ceb44 100644 --- a/babeld/kernel.c +++ b/babeld/kernel.c @@ -227,10 +227,10 @@ if_eui64(int ifindex, unsigned char *eui)  /* Like gettimeofday, but returns monotonic time.  If POSIX clocks are not     available, falls back to gettimeofday but enforces monotonicity. */ -int +void  gettime(struct timeval *tv)  { -    return monotime(tv); +    monotime(tv);  }  /* If /dev/urandom doesn't exist, this will fail with ENOENT, which the diff --git a/babeld/kernel.h b/babeld/kernel.h index 5b1437ef3e..f39bc35bdb 100644 --- a/babeld/kernel.h +++ b/babeld/kernel.h @@ -43,7 +43,7 @@ int kernel_route(enum babel_kernel_routes operation, const unsigned char *dest,  		 unsigned int metric, const unsigned char *newgate,  		 int newifindex, unsigned int newmetric);  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);  #endif /* BABEL_KERNEL_H */  | 
