[haiku-commits] haiku: hrev56211 - src/libs/compat/openbsd_network/compat/machine

  • From: waddlesplash <waddlesplash@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 22 Jun 2022 03:23:20 +0000 (UTC)

hrev56211 adds 1 changeset to branch 'master'
old head: 4b6af34c0693f7784d55665f97f8904d1a012f0d
new head: 7e1c1d30203733161a787736c569b1fb1b5bd1b6
overview: 
https://git.haiku-os.org/haiku/log/?qt=range&q=7e1c1d302037+%5E4b6af34c0693

----------------------------------------------------------------------------

7e1c1d302037: openbsd_network: Adjust reference-taking in bus_dmamap_load_mbuf.
  
  dm_segs is a flexible-length array at the end of a structure.
  Taking its address with & gives the same address as using it without,
  however, the types are not identical in the different cases.
  
  This should fix some warnings about incompatibile pointer types
  while not changing behavior.

                              [ Augustin Cavalier <waddlesplash@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev56211
Commit:      7e1c1d30203733161a787736c569b1fb1b5bd1b6
URL:         https://git.haiku-os.org/haiku/commit/?id=7e1c1d302037
Author:      Augustin Cavalier <waddlesplash@xxxxxxxxx>
Date:        Wed Jun 22 03:23:02 2022 UTC

----------------------------------------------------------------------------

1 file changed, 1 insertion(+), 1 deletion(-)
src/libs/compat/openbsd_network/compat/machine/bus.h | 2 +-

----------------------------------------------------------------------------

diff --git a/src/libs/compat/openbsd_network/compat/machine/bus.h 
b/src/libs/compat/openbsd_network/compat/machine/bus.h
index a0a10b1d89..5b430c1af8 100644
--- a/src/libs/compat/openbsd_network/compat/machine/bus.h
+++ b/src/libs/compat/openbsd_network/compat/machine/bus.h
@@ -84,7 +84,7 @@ static int
 bus_dmamap_load_mbuf_obsd(bus_dma_tag_t tag, bus_dmamap_t dmam, struct mbuf 
*chain, int flags)
 {
        return bus_dmamap_load_mbuf_sg(dmam->_dmat, dmam->_dmamp, chain,
-               &dmam->dm_segs, &dmam->dm_nsegs, flags);
+               dmam->dm_segs, &dmam->dm_nsegs, flags);
 }
 #define bus_dmamap_load_mbuf bus_dmamap_load_mbuf_obsd
 


Other related posts:

  • » [haiku-commits] haiku: hrev56211 - src/libs/compat/openbsd_network/compat/machine - waddlesplash