forked from bonsai/harakit
dj(1): more formatting
This commit is contained in:
parent
666c621a02
commit
99f2b2963a
3
src/dj.c
3
src/dj.c
@ -96,8 +96,9 @@ static struct Io * Io_write(struct Io *io) {
|
||||
if ((t = write(io->fd, io->buf, io->bufuse)) < 0) {
|
||||
io->error = errno;
|
||||
t = 0;
|
||||
} else if (t > 0)
|
||||
} else if (t > 0) {
|
||||
memmove(io->buf, &(io->buf)[t], (io->bufuse -= t));
|
||||
}
|
||||
|
||||
io->bytes += t;
|
||||
io->prec += (t > 0 && io->bufuse > 0);
|
||||
|
Loading…
Reference in New Issue
Block a user