-/* $OpenBSD: pdu.c,v 1.12 2019/07/03 03:24:03 deraadt Exp $ */
+/* $OpenBSD: pdu.c,v 1.13 2021/04/12 10:03:33 claudio Exp $ */
/*
* Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org>
if ((n = writev(c->fd, iov, niov)) == -1) {
if (errno == EAGAIN || errno == ENOBUFS ||
- errno == EINTR) /* try later */
+ errno == EINTR) /* try later */
return 0;
else {
log_warn("pdu_write");
return 0;
size = n;
- for (b = TAILQ_FIRST(&c->pdu_w); b != NULL && size > 0; b = nb) {
+ for (b = TAILQ_FIRST(&c->pdu_w); b != NULL && size > 0; b = nb) {
nb = TAILQ_NEXT(b, entry);
resid = b->resid;
for (j = 0; j < PDU_MAXIOV; j++) {
else {
n = pdu_readbuf_read(&c->prbuf,
(char *)p->iov[j].iov_base + off,
- p->iov[j].iov_len - off);
+ p->iov[j].iov_len - off);
p->resid += n;
if (n == 0 || off + n !=
p->iov[j].iov_len)
-/* $OpenBSD: util.c,v 1.8 2016/08/16 18:41:57 tedu Exp $ */
+/* $OpenBSD: util.c,v 1.9 2021/04/12 10:03:33 claudio Exp $ */
/*
* Copyright (c) 2009 Claudio Jeker <claudio@openbsd.org>
int
socket_setblockmode(int fd, int nonblocking)
{
- int flags;
+ int flags;
if ((flags = fcntl(fd, F_GETFL)) == -1)
return -1;