Re: upgrade 6-STABLE to -CURRENT on sparc64 renders box unusable

From: Ed Schouten <ed_at_fxq.nl>
Date: Tue, 10 Jul 2007 22:53:14 +0200
* Michiel Boland <michiel_at_boland.org> wrote:
> --- __getosreldate.c.orig	2007-07-10 22:29:02.000000000 +0200
> +++ __getosreldate.c	2007-07-10 22:28:20.000000000 +0200
> _at__at_ -42,13 +42,10 _at__at_
>  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?

-- 
 Ed Schouten <ed_at_fxq.nl>
 WWW: http://g-rave.nl/

Received on Tue Jul 10 2007 - 18:53:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:14 UTC