- mbuf external storage is of (caddr_t), not (caddr_t *).

- remove a needless cast.
This commit is contained in:
yamt 2004-09-29 11:22:03 +00:00
parent 29ac95abc3
commit 81378f8ab8
2 changed files with 7 additions and 7 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_bge.c,v 1.74 2004/09/21 21:57:30 yamt Exp $ */
/* $NetBSD: if_bge.c,v 1.75 2004/09/29 11:22:03 yamt Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.74 2004/09/21 21:57:30 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.75 2004/09/29 11:22:03 yamt Exp $");
#include "bpfilter.h"
#include "vlan.h"
@ -934,7 +934,7 @@ bge_newbuf_jumbo(sc, i, m)
struct bge_rx_bd *r;
if (m == NULL) {
caddr_t *buf = NULL;
caddr_t buf = NULL;
/* Allocate the mbuf. */
MGETHDR(m_new, M_DONTWAIT, MT_DATA);

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ti.c,v 1.62 2004/09/21 21:57:30 yamt Exp $ */
/* $NetBSD: if_ti.c,v 1.63 2004/09/29 11:22:03 yamt Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@ -81,7 +81,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.62 2004/09/21 21:57:30 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_ti.c,v 1.63 2004/09/29 11:22:03 yamt Exp $");
#include "bpfilter.h"
#include "opt_inet.h"
@ -884,7 +884,7 @@ static int ti_newbuf_jumbo(sc, i, m)
struct ti_rx_desc *r;
if (m == NULL) {
caddr_t *buf = NULL;
caddr_t buf = NULL;
/* Allocate the mbuf. */
MGETHDR(m_new, M_DONTWAIT, MT_DATA);
@ -904,7 +904,7 @@ static int ti_newbuf_jumbo(sc, i, m)
}
/* Attach the buffer to the mbuf. */
MEXTADD(m_new, (void *)buf, ETHER_MAX_LEN_JUMBO,
MEXTADD(m_new, buf, ETHER_MAX_LEN_JUMBO,
M_DEVBUF, ti_jfree, sc);
m_new->m_flags |= M_EXT_RW;
m_new->m_len = m_new->m_pkthdr.len = ETHER_MAX_LEN_JUMBO;