Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/bta2dpd/bta2dpd Reorder for readability.



details:   https://anonhg.NetBSD.org/src/rev/26a1f92399c7
branches:  trunk
changeset: 378122:26a1f92399c7
user:      nat <nat%NetBSD.org@localhost>
date:      Fri Jul 21 02:11:18 2023 +0000

description:
Reorder for readability.

No functional change intended.

XXX pullup-10.

diffstat:

 usr.sbin/bta2dpd/bta2dpd/sbc_encode.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 8aa0559ffa7b -r 26a1f92399c7 usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
--- a/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c     Fri Jul 21 02:10:37 2023 +0000
+++ b/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c     Fri Jul 21 02:11:18 2023 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sbc_encode.c,v 1.12 2023/07/20 12:33:27 nat Exp $ */
+/* $NetBSD: sbc_encode.c,v 1.13 2023/07/21 02:11:18 nat Exp $ */
 
 /*-
  * Copyright (c) 2015 - 2016 Nathanial Sloss <nathanialsloss%yahoo.com.au@localhost>
@@ -952,8 +952,6 @@ stream(int in, int outfd, uint8_t mode, 
        memcpy(whole + offset, frameData, (size_t)next_pkt);
        free(frameData);
 
-       tries = 1;
-
        /* Wait if necessary to avoid rapid playback. */
        gettimeofday(&myTime, NULL);
        timeNow = myTime.tv_sec * 1000000 + myTime.tv_usec;
@@ -967,6 +965,7 @@ stream(int in, int outfd, uint8_t mode, 
        }
        prevTime = timeNow;
 
+       tries = 1;
 send_again:
        len = write(outfd, whole, totalSize);
 



Home | Main Index | Thread Index | Old Index