Module Name: src
Committed By: christos
Date: Sat Oct 19 17:06:57 UTC 2013
Modified Files:
src/usr.sbin/fwctl: fwdv.c
Log Message:
move all the code that is unused inside #if 0
To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/usr.sbin/fwctl/fwdv.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/fwctl/fwdv.c
diff -u src/usr.sbin/fwctl/fwdv.c:1.7 src/usr.sbin/fwctl/fwdv.c:1.8
--- src/usr.sbin/fwctl/fwdv.c:1.7 Sun Feb 6 20:37:12 2011
+++ src/usr.sbin/fwctl/fwdv.c Sat Oct 19 13:06:57 2013
@@ -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 @@ dvsend(int d, const char *filename, char
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 @@ next:
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);