FreeBSD Bugzilla – Attachment 5303 Details for
Bug 12768
Compilation warning for fortune.c
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 926 bytes, created by
sjr
on 1999-07-23 03:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
sjr
Created:
1999-07-23 03:50:00 UTC
Size:
926 bytes
patch
obsolete
>--- fortune/fortune.c.orig Thu Jul 22 22:32:22 1999 >+++ fortune/fortune.c Thu Jul 22 22:32:55 1999 >@@ -401,7 +401,7 @@ > 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 @@ > } 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 @@ > exit(1); > } > percent = 100 - percent; >- if (Equal_probs) >+ if (Equal_probs) { > if (num_noprob != 0) { > if (num_noprob > 1) { > frac = percent / num_noprob; >@@ -932,6 +933,7 @@ > last->percent = percent; > DPRINTF(1, (stderr, ", residual = %d%%", percent)); > } >+ } > else { > DPRINTF(1, (stderr, > ", %d%% distributed over remaining fortunes\n",
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 12768
: 5303