Spaces, no functional change
authorclaudio <claudio@openbsd.org>
Mon, 12 Apr 2021 10:03:33 +0000 (10:03 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 12 Apr 2021 10:03:33 +0000 (10:03 +0000)
usr.sbin/iscsid/pdu.c
usr.sbin/iscsid/util.c

index 37e2f81..7fe2d77 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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>
@@ -287,7 +287,7 @@ pdu_write(struct connection *c)
 
        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");
@@ -298,7 +298,7 @@ pdu_write(struct connection *c)
                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++) {
@@ -385,7 +385,7 @@ pdu_parse(struct connection *c)
                                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)
index ef9711c..e40f2cc 100644 (file)
@@ -1,4 +1,4 @@
-/*     $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>
@@ -107,7 +107,7 @@ pdu_free(struct pdu *p)
 int
 socket_setblockmode(int fd, int nonblocking)
 {
-       int     flags;
+       int flags;
 
        if ((flags = fcntl(fd, F_GETFL)) == -1)
                return -1;