Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/fwctl move all the code that is unused inside #if 0
details: https://anonhg.NetBSD.org/src/rev/c0acbbfd802c
branches: trunk
changeset: 790698:c0acbbfd802c
user: christos <christos%NetBSD.org@localhost>
date: Sat Oct 19 17:06:57 2013 +0000
description:
move all the code that is unused inside #if 0
diffstat:
usr.sbin/fwctl/fwdv.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 5c4e2fc06391 -r c0acbbfd802c usr.sbin/fwctl/fwdv.c
--- a/usr.sbin/fwctl/fwdv.c Sat Oct 19 17:05:58 2013 +0000
+++ b/usr.sbin/fwctl/fwdv.c Sat Oct 19 17:06:57 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fwdv.c,v 1.7 2011/02/07 01:37:12 dholland Exp $ */
+/* $NetBSD: fwdv.c,v 1.8 2013/10/19 17:06:57 christos Exp $ */
/*
* Copyright (C) 2003
* Hidetoshi Shimokawa. All rights reserved.
@@ -265,7 +265,7 @@
struct dvdbc *dv;
struct fw_pkt *pkt;
int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i;
- int lsystem=-1, pad_acc, cycle_acc, cycle, f_cycle, f_frac;
+ int lsystem=-1, pad_acc, cycle_acc, cycle, f_frac;
struct iovec wbuf[TNBUF*2 + NEMPTY];
char *pbuf;
uint32_t iso_data, iso_empty, hdr[TNBUF + NEMPTY][3];
@@ -368,10 +368,11 @@
if (frames % frame_rate[lsystem] == 0)
fprintf(stderr, "\n");
fflush(stderr);
- f_cycle = (cycle_acc / frame_cycle[lsystem].d) & 0xf;
f_frac = (cycle_acc % frame_cycle[lsystem].d
* CYCLE_FRAC) / frame_cycle[lsystem].d;
#if 0
+ int f_cycle = (cycle_acc / frame_cycle[lsystem].d)
+ & 0xf;
ciph->fdf.dv.cyc = htons(f_cycle << 12 | f_frac);
#else
ciph->fdf.dv.cyc = htons(cycle << 12 | f_frac);
Home |
Main Index |
Thread Index |
Old Index