Skip to content

Commit

Permalink
swaybar: fix empty function prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
ianyfan committed Sep 18, 2018
1 parent 9524534 commit 9932c6a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/swaybar/event_loop.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ bool remove_event(int fd);
bool remove_timer(timer_t timer);

// Blocks and returns after sending callbacks
void event_loop_poll();
void event_loop_poll(void);

void init_event_loop();
void init_event_loop(void);

#endif
4 changes: 2 additions & 2 deletions swaybar/event_loop.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ bool remove_timer(timer_t timer) {
return false;
}

void event_loop_poll() {
void event_loop_poll(void) {
poll(event_loop.fds.items, event_loop.fds.length, -1);

for (int i = 0; i < event_loop.fds.length; ++i) {
Expand Down Expand Up @@ -146,7 +146,7 @@ void event_loop_poll() {
}
}

void init_event_loop() {
void init_event_loop(void) {
event_loop.fds.length = 0;
event_loop.fds.capacity = 10;
event_loop.fds.items = malloc(
Expand Down

0 comments on commit 9932c6a

Please sign in to comment.