Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jul 2007 15:05:00 -0600
From:      Scott Long <scottl@samsco.org>
To:        Ed Schouten <ed@fxq.nl>
Cc:        Michiel Boland <michiel@boland.org>, FreeBSD Current <freebsd-current@freebsd.org>, peter@freebsd.org
Subject:   Re: upgrade 6-STABLE to -CURRENT on sparc64 renders box unusable
Message-ID:  <4693F47C.2040409@samsco.org>
In-Reply-To: <20070710205314.GM55449@hoeg.nl>
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> <20070710205314.GM55449@hoeg.nl>

next in thread | previous in thread | raw e-mail | index | archive | help
Ed Schouten wrote:
> * 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 != 0)
>> -		return (osreldate);
>>
>>  	oid[0] = CTL_KERN;
>>  	oid[1] = KERN_OSRELDATE;
> 
> Isn't the problem solved by just initializing osreldate with zero?
> 

I'm pretty sure that the osreldate should be automatically initialized
to zero since it's static.  I wonder if this has been broken on sparc64
somehow.

Scott




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