diff options
author | jsing <> | 2023-07-08 07:34:34 +0000 |
---|---|---|
committer | jsing <> | 2023-07-08 07:34:34 +0000 |
commit | f21447ceff21c91ccffb7bda7502d04bdc536012 (patch) | |
tree | 14fa0c0b3cfd9f5af3d0193d221ba10deb8fbcce /src/lib/libcrypto/des/enc_writ.c | |
parent | 903dc2a64c29e2f25074485b7e91d9844296b1f3 (diff) | |
download | openbsd-f21447ceff21c91ccffb7bda7502d04bdc536012.tar.gz openbsd-f21447ceff21c91ccffb7bda7502d04bdc536012.tar.bz2 openbsd-f21447ceff21c91ccffb7bda7502d04bdc536012.zip |
More style(9).
Diffstat (limited to 'src/lib/libcrypto/des/enc_writ.c')
-rw-r--r-- | src/lib/libcrypto/des/enc_writ.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libcrypto/des/enc_writ.c b/src/lib/libcrypto/des/enc_writ.c index 8a19fb84f9..3def8a8d73 100644 --- a/src/lib/libcrypto/des/enc_writ.c +++ b/src/lib/libcrypto/des/enc_writ.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: enc_writ.c,v 1.16 2023/07/08 07:11:07 beck Exp $ */ | 1 | /* $OpenBSD: enc_writ.c,v 1.17 2023/07/08 07:34:34 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -110,8 +110,7 @@ DES_enc_write(int fd, const void *_buf, int len, | |||
110 | /* lets recurse if we want to send the data in small chunks */ | 110 | /* lets recurse if we want to send the data in small chunks */ |
111 | if (len > MAXWRITE) { | 111 | if (len > MAXWRITE) { |
112 | j = 0; | 112 | j = 0; |
113 | for (i = 0; i < len; i += k) | 113 | for (i = 0; i < len; i += k) { |
114 | { | ||
115 | k = DES_enc_write(fd, &(buf[i]), | 114 | k = DES_enc_write(fd, &(buf[i]), |
116 | ((len - i) > MAXWRITE) ? MAXWRITE : (len - i), | 115 | ((len - i) > MAXWRITE) ? MAXWRITE : (len - i), |
117 | sched, iv); | 116 | sched, iv); |
@@ -148,8 +147,7 @@ DES_enc_write(int fd, const void *_buf, int len, | |||
148 | /* output */ | 147 | /* output */ |
149 | outnum = rnum + HDRSIZE; | 148 | outnum = rnum + HDRSIZE; |
150 | 149 | ||
151 | for (j = 0; j < outnum; j += i) | 150 | for (j = 0; j < outnum; j += i) { |
152 | { | ||
153 | /* eay 26/08/92 I was not doing writing from where we | 151 | /* eay 26/08/92 I was not doing writing from where we |
154 | * got up to. */ | 152 | * got up to. */ |
155 | i = write(fd, (void *)&(outbuf[j]), outnum - j); | 153 | i = write(fd, (void *)&(outbuf[j]), outnum - j); |