Module Name: src
Committed By: christos
Date: Sun Nov 3 01:02:37 UTC 2013
Modified Files:
src/sys/arch/alpha/stand/netboot: getsecs.c
Log Message:
move unused variable inside if 0
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/alpha/stand/netboot/getsecs.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/alpha/stand/netboot/getsecs.c
diff -u src/sys/arch/alpha/stand/netboot/getsecs.c:1.10 src/sys/arch/alpha/stand/netboot/getsecs.c:1.11
--- src/sys/arch/alpha/stand/netboot/getsecs.c:1.10 Thu Jan 10 05:36:41 2013
+++ src/sys/arch/alpha/stand/netboot/getsecs.c Sat Nov 2 21:02:37 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: getsecs.c,v 1.10 2013/01/10 10:36:41 he Exp $ */
+/* $NetBSD: getsecs.c,v 1.11 2013/11/03 01:02:37 christos Exp $ */
#include <sys/param.h>
@@ -16,16 +16,16 @@ satime_t
getsecs(void)
{
static uint64_t tnsec;
- static uint64_t lastpcc, wrapsecs;
+ static uint64_t lastpcc;
uint64_t curpcc;
if (tnsec == 0) {
tnsec = 1;
lastpcc = alpha_rpcc() & 0xffffffff;
- wrapsecs = (0xffffffff /
- ((struct rpb *)HWRPB_ADDR)->rpb_cc_freq) + 1;
#if 0
+ uint64_t wrapsecs = (0xffffffff /
+ ((struct rpb *)HWRPB_ADDR)->rpb_cc_freq) + 1;
printf("getsecs: cc freq = %lu, time to wrap = %lu\n",
((struct rpb *)HWRPB_ADDR)->rpb_cc_freq, wrapsecs);
#endif