diff options
Diffstat (limited to 'src/util.c')
| -rw-r--r-- | src/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,7 +28,7 @@ void color_print(FILE *stream, color_t *color) fprintf(stream, "#%02x%02x%02x%02x", r, g, b, a); } -struct timespec timespec_from_ms(long ms) +const struct timespec timespec_from_ms(long ms) { struct timespec ts = { .tv_sec = ms / 1000, @@ -37,7 +37,7 @@ struct timespec timespec_from_ms(long ms) return ts; } -long timespec_to_ms(struct timespec ts) +const long timespec_to_ms(struct timespec ts) { return (ts.tv_sec * 1000) + (ts.tv_nsec / 1000000ul); } |
