Skip to content

Commit

Permalink
fix obsolete fenster_time() declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
roccoblues committed Oct 21, 2023
1 parent d41e734 commit 509a2ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fenster.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 509a2ea

Please sign in to comment.