Skip to content

Commit

Permalink
Small change
Browse files Browse the repository at this point in the history
  • Loading branch information
hurufu committed Apr 30, 2024
1 parent 013b5a4 commit 50b5988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multitasking/sigio.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# define SIGINFO SIGPWR
#endif

static struct coro_context_ring* s_current; // TODO: Renamce to s_active
static struct coro_context_ring* s_current;
static struct coro_context_ring* s_waiting;
static struct coro_context s_end;
static siginfo_t s_si;
Expand Down Expand Up @@ -59,7 +59,7 @@ static char* events_tostring(const size_t size, char buf[static const size], con
}

static int suspend_poll(const int fd, const short nevents) {
LOGDXP(char tmp[32], "fd: %d, nevents: %s", fd, events_tostring(sizeof tmp, tmp, nevents));
LOGDXP(char tmp[8], "fd: %d, nevents: %s", fd, events_tostring(sizeof tmp, tmp, nevents));
if (is_fd_bad(fd))
return -1;
assert(fcntl(fd, F_GETFL) & O_NONBLOCK);
Expand Down

0 comments on commit 50b5988

Please sign in to comment.