Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Widlund committed Feb 18, 2020
1 parent 6b54852 commit d680409
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/dynamic/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ void core_construct(core *core)
vector_construct(&core->next, sizeof(core_handler));
core->fd = epoll_create1(EPOLL_CLOEXEC);
if (core->fd == -1)
core->errors ++;
core->errors ++;
}
core->ref ++;
}
Expand All @@ -48,7 +48,7 @@ void core_destruct(core *core)
if (!core->ref)
{
if (core->fd >= 0)
(void) close(core->fd);
(void) close(core->fd);
vector_destruct(&core->handlers, NULL);
vector_destruct(&core->next, NULL);
}
Expand Down Expand Up @@ -133,7 +133,7 @@ void core_delete(core *core, int fd)
core->handlers_active --;
}

int core_next(core *core,core_callback *callback, void *state)
int core_next(core *core, core_callback *callback, void *state)
{
core_handler handler = {.callback = callback, .state = state};

Expand Down
2 changes: 1 addition & 1 deletion src/dynamic/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void core_loop(core *);
void core_add(core *, core_callback *, void *, int, int);
void core_modify(core *, int, int);
void core_delete(core *, int);
int core_queue(core *, core_callback *, void *);
int core_next(core *, core_callback *, void *);
void core_cancel(core *, int);
int core_errors(core *);

Expand Down

0 comments on commit d680409

Please sign in to comment.