Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/cdplay Apply patch supplied in PR 8561 from URA Hiro...



details:   https://anonhg.NetBSD.org/src/rev/fc9dddf7e2ab
branches:  trunk
changeset: 487881:fc9dddf7e2ab
user:      ad <ad%NetBSD.org@localhost>
date:      Wed Jun 14 13:51:45 2000 +0000

description:
Apply patch supplied in PR 8561 from URA Hiroshi: fixes LBA mode display on
little endian machines.

diffstat:

 usr.bin/cdplay/cdplay.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r e4574e8f2422 -r fc9dddf7e2ab usr.bin/cdplay/cdplay.c
--- a/usr.bin/cdplay/cdplay.c   Wed Jun 14 13:44:21 2000 +0000
+++ b/usr.bin/cdplay/cdplay.c   Wed Jun 14 13:51:45 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cdplay.c,v 1.6 2000/06/13 13:37:15 ad Exp $    */
+/*     $NetBSD: cdplay.c,v 1.7 2000/06/14 13:51:45 ad Exp $    */
 
 /*
  * Copyright (c) 1999 Andrew Doran.
@@ -56,7 +56,7 @@
  
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: cdplay.c,v 1.6 2000/06/13 13:37:15 ad Exp $");
+__RCSID("$NetBSD: cdplay.c,v 1.7 2000/06/14 13:51:45 ad Exp $");
 #endif /* not lint */
 
 #include <sys/endian.h>
@@ -840,7 +840,7 @@
                block = msf2lba(e->addr.msf.minute, e->addr.msf.second,
                    e->addr.msf.frame);
        } else {
-               block = be32toh(e->addr.lba);
+               block = e->addr.lba;
                lba2msf(block, &m, &s, &f);
                /* Print track start */
                printf("%2d:%02d.%02d  ", m, s, f);
@@ -854,7 +854,7 @@
                next = msf2lba(e[1].addr.msf.minute, e[1].addr.msf.second,
                    e[1].addr.msf.frame);
        else
-               next = be32toh(e[1].addr.lba);
+               next = e[1].addr.lba;
        len = next - block;
        lba2msf(len, &m, &s, &f);
 



Home | Main Index | Thread Index | Old Index