Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jul 2007 22:53:14 +0200
From:      Ed Schouten <ed@fxq.nl>
To:        Michiel Boland <michiel@boland.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>, peter@freebsd.org
Subject:   Re: upgrade 6-STABLE to -CURRENT on sparc64 renders box unusable
Message-ID:  <20070710205314.GM55449@hoeg.nl>
In-Reply-To: <Pine.GSO.4.64.0707102211410.4947@neerbosch.nijmegen.internl.net>
References:  <Pine.GSO.4.64.0707101403490.13827@neerbosch.nijmegen.internl.net> <Pine.GSO.4.64.0707101824231.15001@neerbosch.nijmegen.internl.net> <Pine.GSO.4.64.0707102211410.4947@neerbosch.nijmegen.internl.net>

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

--OGW1Z2JKiS9bXo17
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Michiel Boland <michiel@boland.org> wrote:
> --- __getosreldate.c.orig	2007-07-10 22:29:02.000000000 +0200
> +++ __getosreldate.c	2007-07-10 22:28:20.000000000 +0200
> @@ -42,13 +42,10 @@
>  int
>  __getosreldate(void)
>  {
> -	static int osreldate;
> +	int osreldate;
>  	size_t len;
>  	int oid[2];
>  	int error, osrel;
> -
> -	if (osreldate !=3D 0)
> -		return (osreldate);
>
>  	oid[0] =3D CTL_KERN;
>  	oid[1] =3D KERN_OSRELDATE;

Isn't the problem solved by just initializing osreldate with zero?

--=20
 Ed Schouten <ed@fxq.nl>
 WWW: http://g-rave.nl/

--OGW1Z2JKiS9bXo17
Content-Type: application/pgp-signature
Content-Disposition: inline

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

iD8DBQFGk/G652SDGA2eCwURAk7jAJ9cJU2XN6Juw+6NLsvdzLFRdmRGbQCfdvVr
w8M+tREdYiKmKWNk8YNG51g=
=4/cE
-----END PGP SIGNATURE-----

--OGW1Z2JKiS9bXo17--



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