Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Oct 2009 19:09:18 +0200
From:      Ed Schouten <ed@80386.nl>
To:        FreeBSD Hackers <hackers@freebsd.org>
Subject:   Re: RFC: Big Makefile patch for WARNS settings
Message-ID:  <20091011170918.GU71731@hoeg.nl>
In-Reply-To: <20091011145021.GG36937@acme.spoerlein.net>
References:  <20091011145021.GG36937@acme.spoerlein.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--yIMHf/Pa6CzSkARF
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi Ulrich,

* Ulrich Sp=F6rlein <uqs@spoerlein.net> wrote:
> Comments? Committers?

Wouldn't it better to address the root of the problem while there? ;-)

Index: number.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- number.c	(revision 197852)
+++ number.c	(working copy)
@@ -88,9 +88,7 @@
 int lflag;
=20
 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[] =3D { "", "ten-", "hundred-" };
+	static char const * const pref[] =3D { "", "ten-", "hundred-" };
=20
 	switch(len) {
 	case 1:

--=20
 Ed Schouten <ed@80386.nl>
 WWW: http://80386.nl/

--yIMHf/Pa6CzSkARF
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (FreeBSD)

iEYEARECAAYFAkrSET4ACgkQ52SDGA2eCwWZJQCcDlRcPwKpLSdm4o4xOo4rOalM
330AniHp8JXcJVZZLm3xakUHOAXr+4M/
=rTK/
-----END PGP SIGNATURE-----

--yIMHf/Pa6CzSkARF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091011170918.GU71731>