diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-02-14 14:24:22 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-02-14 14:24:22 +0000 |
commit | bf173a2604bd859e8f923f89df06fce145944f3c (patch) | |
tree | bc6fab0af70644c69f78c1cd5abc96b1cf7cd225 /usr.bin/mg/random.c | |
parent | e672b0adc93b18c8f8186dbe2abee2a2d006664b (diff) |
some KNF
Diffstat (limited to 'usr.bin/mg/random.c')
-rw-r--r-- | usr.bin/mg/random.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/mg/random.c b/usr.bin/mg/random.c index 933b1899ae7..bd652c4d66a 100644 --- a/usr.bin/mg/random.c +++ b/usr.bin/mg/random.c @@ -1,4 +1,4 @@ -/* $OpenBSD: random.c,v 1.6 2001/05/24 03:05:25 mickey Exp $ */ +/* $OpenBSD: random.c,v 1.7 2002/02/14 14:24:21 deraadt Exp $ */ /* * Assorted commands. @@ -180,9 +180,9 @@ newline(f, n) while (n--) { lp = curwp->w_dotp; #ifdef undef - if (llength(lp) == curwp->w_doto - && lforw(lp) != curbp->b_linep - && llength(lforw(lp)) == 0) { + if (llength(lp) == curwp->w_doto && + lforw(lp) != curbp->b_linep && + llength(lforw(lp)) == 0) { if ((s = forwchar(FFRAND, 1)) != TRUE) return s; } else @@ -246,8 +246,8 @@ delwhite(f, n) col = curwp->w_doto; - while (((c = lgetc(curwp->w_dotp, col)) == ' ' || c == '\t') - && col < llength(curwp->w_dotp)) + while (((c = lgetc(curwp->w_dotp, col)) == ' ' || c == '\t') && + col < llength(curwp->w_dotp)) ++col; do { if (curwp->w_doto == 0) { |