Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
hurufu committed Nov 15, 2023
1 parent 5bb4850 commit 8f2aaaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frob.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ static void perform_pending_write(const enum channel i, struct state* const st)
// We can write only to output channels
assert(i >= CHANNEL_FIRST_OUTPUT && i <= CHANNEL_LAST_OUTPUT);

const ptrdiff_t l = used_space(ch);
const size_t l = used_space(ch);
const ssize_t s = write(ch->fd, ch->buf, l);
if (s != l) {
EXITF("Can't write %td bytes to %s channel (fd %d)", l, channel_to_string(i), ch->fd);
Expand Down

0 comments on commit 8f2aaaa

Please sign in to comment.