From 509a2eaf48ad01c9cda1c0de800fdac56678fcc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dennis=20Sch=C3=B6n?= Date: Sat, 21 Oct 2023 17:38:14 +0200 Subject: [PATCH] fix obsolete fenster_time() declaration --- fenster.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fenster.h b/fenster.h index 2d78da6..ed4332e 100644 --- a/fenster.h +++ b/fenster.h @@ -47,7 +47,7 @@ FENSTER_API int fenster_open(struct fenster *f); FENSTER_API int fenster_loop(struct fenster *f); FENSTER_API void fenster_close(struct fenster *f); FENSTER_API void fenster_sleep(int64_t ms); -FENSTER_API int64_t fenster_time(); +FENSTER_API int64_t fenster_time(void); #define fenster_pixel(f, x, y) ((f)->buf[((y) * (f)->width) + (x)]) #ifndef FENSTER_HEADER @@ -325,7 +325,7 @@ FENSTER_API void fenster_sleep(int64_t ms) { ts.tv_nsec = (ms % 1000) * 1000000; nanosleep(&ts, NULL); } -FENSTER_API int64_t fenster_time() { +FENSTER_API int64_t fenster_time(void) { struct timespec time; clock_gettime(CLOCK_REALTIME, &time); return time.tv_sec * 1000 + (time.tv_nsec / 1000000);