Skip to content

Commit

Permalink
Merge pull request #23 from roccoblues/strict-prototypes
Browse files Browse the repository at this point in the history
fix deprecated fenster_time() declaration
  • Loading branch information
zserge authored Nov 13, 2023
2 parents d41e734 + 509a2ea commit 92aa0ec
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 92aa0ec

Please sign in to comment.