summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Fumerola <billf@FreeBSD.org>1999-07-23 21:31:08 +0000
committerBill Fumerola <billf@FreeBSD.org>1999-07-23 21:31:08 +0000
commit2ee6c6d9634670424f148ec8b7157a87fe5ab765 (patch)
tree09756091ee5e252b675f5a9e450f0213e489c69b
parent37735ca6ea0bc44e58cdabd94a9e29c5614c7a6e (diff)
Notes
-rw-r--r--games/fortune/fortune/fortune.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c
index d06ceda74a4e..854a64408765 100644
--- a/games/fortune/fortune/fortune.c
+++ b/games/fortune/fortune/fortune.c
@@ -401,7 +401,7 @@ register int file_cnt;
register int i, percent;
register char *sp;
- if (file_cnt == 0)
+ if (file_cnt == 0) {
if (Find_files) {
Fortunes_only = TRUE;
i = add_file(NO_PROB, FORTDIR, NULL, &File_list,
@@ -411,6 +411,7 @@ register int file_cnt;
} else
return add_file(NO_PROB, "fortunes", FORTDIR,
&File_list, &File_tail, NULL);
+ }
for (i = 0; i < file_cnt; i++) {
percent = NO_PROB;
if (!isdigit((unsigned char)files[i][0]))
@@ -918,7 +919,7 @@ init_prob()
exit(1);
}
percent = 100 - percent;
- if (Equal_probs)
+ if (Equal_probs) {
if (num_noprob != 0) {
if (num_noprob > 1) {
frac = percent / num_noprob;
@@ -932,7 +933,7 @@ init_prob()
last->percent = percent;
DPRINTF(1, (stderr, ", residual = %d%%", percent));
}
- else {
+ else
DPRINTF(1, (stderr,
", %d%% distributed over remaining fortunes\n",
percent));