RFC: Big Makefile patch for WARNS settings
Ed Schouten
ed at 80386.nl
Sun Oct 11 17:09:19 UTC 2009
Hi Ulrich,
* Ulrich Spörlein <uqs at spoerlein.net> wrote:
> Comments? Committers?
Wouldn't it better to address the root of the problem while there? ;-)
Index: number.c
===================================================================
--- number.c (revision 197852)
+++ number.c (working copy)
@@ -88,9 +88,7 @@
int lflag;
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int ch, first;
char line[256];
@@ -275,7 +273,7 @@
pfract(len)
int len;
{
- static char *pref[] = { "", "ten-", "hundred-" };
+ static char const * const pref[] = { "", "ten-", "hundred-" };
switch(len) {
case 1:
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20091011/ea673db5/attachment.pgp
More information about the freebsd-hackers
mailing list