timespec: Don't return value from void function

timespec_add_msec() doesn't return any values, so don't try to return
any.

Signed-off-by: Daniel Stone <daniels@collabora.com>
dev
Daniel Stone 5 years ago
parent 82c8ca1628
commit a9278d28fc
  1. 2
      shared/timespec-util.h

@ -81,7 +81,7 @@ timespec_add_nsec(struct timespec *r, const struct timespec *a, int64_t b)
static inline void static inline void
timespec_add_msec(struct timespec *r, const struct timespec *a, int64_t b) timespec_add_msec(struct timespec *r, const struct timespec *a, int64_t b)
{ {
return timespec_add_nsec(r, a, b * 1000000); timespec_add_nsec(r, a, b * 1000000);
} }
/* Convert timespec to nanoseconds /* Convert timespec to nanoseconds

Loading…
Cancel
Save