Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Jul 2007 19:41:15 GMT
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 122659 for review
Message-ID:  <200707011941.l61JfFlW072363@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122659

Change 122659 by peter@peter_overcee on 2007/07/01 19:40:39

	Un-molest this version

Affected files ...

.. //depot/projects/hammer/lib/libc/gen/getosreldate.c#6 edit

Differences ...

==== //depot/projects/hammer/lib/libc/gen/getosreldate.c#6 (text+ko) ====

@@ -45,11 +45,9 @@
 	int mib[2];
 	size_t size;
 	int value;
-	static int osreldate = -1;
+
 	char *temp;
 
-	if (osreldate != -1)
-		return (osreldate);
 	mib[0] = CTL_KERN;
 	mib[1] = KERN_OSRELDATE;
 	size = sizeof value;
@@ -57,6 +55,5 @@
 		return (-1);
 	if ((temp = getenv("OSVERSION")))
 		value = atoi(temp);
-	osreldate = value;
 	return (value);
 }



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