dj(1): more formatting

This commit is contained in:
Emma Tebibyte 2024-07-12 16:39:11 -06:00
parent 666c621a02
commit 99f2b2963a
Signed by untrusted user: emma
GPG Key ID: 06FA419A1698C270

View File

@ -96,8 +96,9 @@ static struct Io * Io_write(struct Io *io) {
if ((t = write(io->fd, io->buf, io->bufuse)) < 0) { if ((t = write(io->fd, io->buf, io->bufuse)) < 0) {
io->error = errno; io->error = errno;
t = 0; t = 0;
} else if (t > 0) } else if (t > 0) {
memmove(io->buf, &(io->buf)[t], (io->bufuse -= t)); memmove(io->buf, &(io->buf)[t], (io->bufuse -= t));
}
io->bytes += t; io->bytes += t;
io->prec += (t > 0 && io->bufuse > 0); io->prec += (t > 0 && io->bufuse > 0);