summaryrefslogtreecommitdiff
path: root/usr.bin/less/ch.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2016-09-17 15:06:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2016-09-17 15:06:42 +0000
commit65d86e65360000654c9d6fe84c3cbe1c120d106e (patch)
treee2ab90282472c64c02136bb4a498c24a5ac673ba /usr.bin/less/ch.c
parent0a8dc2ec631d5ad33bd35b327e05c500696265e3 (diff)
little bit more KNF
Diffstat (limited to 'usr.bin/less/ch.c')
-rw-r--r--usr.bin/less/ch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/less/ch.c b/usr.bin/less/ch.c
index 4b360e230dd..58f08d3deb1 100644
--- a/usr.bin/less/ch.c
+++ b/usr.bin/less/ch.c
@@ -82,7 +82,7 @@ struct filestate {
* Macros to manipulate the list of buffers in thisfile->buflist.
*/
#define FOR_BUFS(bn) \
- for ((bn) = ch_bufhead; (bn) != END_OF_CHAIN; (bn) = (bn)->next)
+ for ((bn) = ch_bufhead; (bn) != END_OF_CHAIN; (bn) = (bn)->next)
#define BUF_RM(bn) \
(bn)->next->prev = (bn)->prev; \
@@ -104,7 +104,7 @@ struct filestate {
* Macros to manipulate the list of buffers in thisfile->hashtbl[n].
*/
#define FOR_BUFS_IN_CHAIN(h, bn) \
- for ((bn) = thisfile->hashtbl[h].hnext; \
+ for ((bn) = thisfile->hashtbl[h].hnext; \
(bn) != END_OF_HCHAIN(h); (bn) = (bn)->hnext)
#define BUF_HASH_RM(bn) \
@@ -384,7 +384,7 @@ sync_logfile(void)
BLOCKNUM nblocks;
nblocks = (ch_fpos + LBUFSIZE - 1) / LBUFSIZE;
- for (block = 0; block < nblocks; block++) {
+ for (block = 0; block < nblocks; block++) {
int wrote = FALSE;
FOR_BUFS(bn) {
bp = bufnode_buf(bn);