Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/stand/netboot move unused variable inside if 0



details:   https://anonhg.NetBSD.org/src/rev/32cbdc52329d
branches:  trunk
changeset: 791073:32cbdc52329d
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Nov 03 01:02:37 2013 +0000

description:
move unused variable inside if 0

diffstat:

 sys/arch/alpha/stand/netboot/getsecs.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r ddd447d738d5 -r 32cbdc52329d sys/arch/alpha/stand/netboot/getsecs.c
--- a/sys/arch/alpha/stand/netboot/getsecs.c    Sun Nov 03 00:59:03 2013 +0000
+++ b/sys/arch/alpha/stand/netboot/getsecs.c    Sun Nov 03 01:02:37 2013 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index