diff options
author | Ed Maste <emaste@FreeBSD.org> | 2022-02-27 19:04:09 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2022-03-10 20:51:27 +0000 |
commit | 2d015cffc73ab1ff0e8be9004ab89ecbc777af78 (patch) | |
tree | 51a9d59333c85798ea35b4a9f6e9606da4b50cc0 /usr.sbin | |
parent | 5055ffaeba4f23dab22fba9dace11bf9f3286d74 (diff) | |
download | src-2d015cffc73ab1ff0e8be9004ab89ecbc777af78.tar.gz src-2d015cffc73ab1ff0e8be9004ab89ecbc777af78.zip |
fwcontrol: eliminate set but not used warning
The variable was used in an #if 0 block; just move the variable
definition and setting into the same block since Firewire is mainly of
historical interest and is unlikely to see ongoing development in
FreeBSD.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/fwcontrol/fwdv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/fwcontrol/fwdv.c b/usr.sbin/fwcontrol/fwdv.c index 510d22fcbf7b..8c14e1ad8ed8 100644 --- a/usr.sbin/fwcontrol/fwdv.c +++ b/usr.sbin/fwcontrol/fwdv.c @@ -258,7 +258,7 @@ dvsend(int d, const char *filename, char ich, int count) struct dvdbc *dv; struct fw_pkt *pkt; int len, tlen, header, fd, frames, packets, vec, offset, nhdr, i; - int system=-1, pad_acc, cycle_acc, cycle, f_cycle, f_frac; + int system=-1, pad_acc, cycle_acc, cycle, f_frac; struct iovec wbuf[TNBUF*2 + NEMPTY]; char *pbuf; u_int32_t iso_data, iso_empty, hdr[TNBUF + NEMPTY][3]; @@ -359,10 +359,11 @@ next: if (frames % frame_rate[system] == 0) fprintf(stderr, "\n"); fflush(stderr); - f_cycle = (cycle_acc / frame_cycle[system].d) & 0xf; f_frac = (cycle_acc % frame_cycle[system].d * CYCLE_FRAC) / frame_cycle[system].d; #if 0 + int f_cycle; + f_cycle = (cycle_acc / frame_cycle[system].d) & 0xf; ciph->fdf.dv.cyc = htons(f_cycle << 12 | f_frac); #else ciph->fdf.dv.cyc = htons(cycle << 12 | f_frac); |