Page MenuHomeFreeBSD

D36815.diff
No OneTemporary

D36815.diff

diff --git a/usr.bin/fortune/fortune/fortune.c b/usr.bin/fortune/fortune/fortune.c
--- a/usr.bin/fortune/fortune/fortune.c
+++ b/usr.bin/fortune/fortune/fortune.c
@@ -958,7 +958,7 @@
else {
choice = arc4random_uniform(100);
DPRINTF(1, (stderr, "choice = %d\n", choice));
- for (fp = File_list; fp->percent != NO_PROB; fp = fp->next)
+ for (fp = File_list; fp->percent != NO_PROB; fp = fp->next) {
if (choice < fp->percent)
break;
else {
@@ -967,9 +967,10 @@
" skip \"%s\", %d%% (choice = %d)\n",
fp->name, fp->percent, choice));
}
- DPRINTF(1, (stderr,
- "using \"%s\", %d%% (choice = %d)\n",
- fp->name, fp->percent, choice));
+ }
+ DPRINTF(1, (stderr,
+ "using \"%s\", %d%% (choice = %d)\n",
+ fp->name, fp->percent, choice));
}
if (fp->percent != NO_PROB)
get_tbl(fp);

File Metadata

Mime Type
text/plain
Expires
Mon, Feb 10, 6:57 PM (7 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16581994
Default Alt Text
D36815.diff (860 B)

Event Timeline