Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libsa Twiddle also for data transfer for seek.
details: https://anonhg.NetBSD.org/src/rev/e72976e6da20
branches: trunk
changeset: 953962:e72976e6da20
user: rin <rin%NetBSD.org@localhost>
date: Fri Mar 26 10:35:08 2021 +0000
description:
Twiddle also for data transfer for seek.
diffstat:
sys/lib/libsa/tftp.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (33 lines):
diff -r de4622a267f8 -r e72976e6da20 sys/lib/libsa/tftp.c
--- a/sys/lib/libsa/tftp.c Fri Mar 26 09:35:18 2021 +0000
+++ b/sys/lib/libsa/tftp.c Fri Mar 26 10:35:08 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tftp.c,v 1.36 2019/03/31 20:08:45 christos Exp $ */
+/* $NetBSD: tftp.c,v 1.37 2021/03/26 10:35:08 rin Exp $ */
/*
* Copyright (c) 1996
@@ -288,11 +288,6 @@
int needblock;
size_t count;
-#if !defined(LIBSA_NO_TWIDDLE)
- if (!(tc++ % 16))
- twiddle();
-#endif
-
needblock = tftpfile->off / SEGSIZE + 1;
if (tftpfile->currblock > needblock) { /* seek backwards */
@@ -306,6 +301,11 @@
while (tftpfile->currblock < needblock) {
int res;
+#if !defined(LIBSA_NO_TWIDDLE)
+ if (!(tc++ % 16))
+ twiddle();
+#endif
+
res = tftp_getnextblock(tftpfile);
if (res) { /* no answer */
#ifdef DEBUG
Home |
Main Index |
Thread Index |
Old Index