Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ieee1394 Pass the right size of object (in this case...



details:   https://anonhg.NetBSD.org/src/rev/d25a0eab279b
branches:  trunk
changeset: 499814:d25a0eab279b
user:      enami <enami%NetBSD.org@localhost>
date:      Thu Nov 30 06:59:08 2000 +0000

description:
Pass the right size of object (in this case, a trailer) to fwohci_buf_pktget.
Since the fp_trail is a pointer to trailer, we have to pass sizeof(*fp_trail)
instead of sizeof(fp_trail).

diffstat:

 sys/dev/ieee1394/fwohci.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 197b0c3f4109 -r d25a0eab279b sys/dev/ieee1394/fwohci.c
--- a/sys/dev/ieee1394/fwohci.c Thu Nov 30 06:42:26 2000 +0000
+++ b/sys/dev/ieee1394/fwohci.c Thu Nov 30 06:59:08 2000 +0000
@@ -1157,7 +1157,7 @@
                 * in descriptor is set.
                 */
                len = fwohci_buf_pktget(sc, fc, (caddr_t *)&pkt->fp_trail,
-                   sizeof(pkt->fp_trail));
+                   sizeof(*pkt->fp_trail));
                if (len <= 0) {
 #ifdef FW_DEBUG
                        if (fw_verbose)
@@ -1242,7 +1242,7 @@
        if (!fc->fc_isoch) {
                /* get trailer */
                len = fwohci_buf_pktget(sc, fc, (caddr_t *)&pkt->fp_trail,
-                   sizeof(pkt->fp_trail));
+                   sizeof(*pkt->fp_trail));
                if (len <= 0) {
                        printf("fwohci_buf_input: malformed input 3: %d\n",
                            pkt->fp_hlen - count);



Home | Main Index | Thread Index | Old Index