]> git.puffer.fish Git - mirror/frr.git/commitdiff
babeld: Remove return value for gettime()
authorDonald Sharp <sharpd@nvidia.com>
Wed, 17 Aug 2022 23:01:30 +0000 (19:01 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Wed, 24 Aug 2022 12:30:27 +0000 (08:30 -0400)
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
babeld/kernel.c
babeld/kernel.h

index 3941db8d5f88d74306735a61f8283e3e01707462..5aa01ceb44dcfa9bd9f29feb2ad63a89a2525d02 100644 (file)
@@ -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
index 5b1437ef3e446e9d1b130aea2c23f23c2e942b18..f39bc35bdb2ab4b135d37093bbb2015243182a03 100644 (file)
@@ -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 */