KNF, same object code generated
This commit is contained in:
parent
9c6bc36bdd
commit
834f1d8f70
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: esc.c,v 1.22 2009/03/18 17:06:41 cegger Exp $ */
|
||||
/* $NetBSD: esc.c,v 1.23 2009/05/16 16:40:58 cegger Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
|
@ -86,7 +86,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: esc.c,v 1.22 2009/03/18 17:06:41 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: esc.c,v 1.23 2009/05/16 16:40:58 cegger Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -818,7 +818,7 @@ esc_setup_nexus(struct esc_softc *dev, struct nexus *nexus, struct esc_pending *
|
|||
/* Setup the nexus struct. */
|
||||
nexus->ID = ((mode & ESC_SELECT_R) ? 0xC0 : 0x80) | lun;
|
||||
nexus->clen = clen;
|
||||
memcpy( nexus->cbuf, cbuf, nexus->clen);
|
||||
memcpy(nexus->cbuf, cbuf, nexus->clen);
|
||||
nexus->cbuf[1] |= lun << 5; /* Fix the lun bits */
|
||||
nexus->cur_link = 0;
|
||||
nexus->dma_len = 0;
|
||||
|
@ -1202,7 +1202,7 @@ esc_midaction(struct esc_softc *dev, esc_regmap_p rp, struct nexus *nexus)
|
|||
&& left)
|
||||
dev->sc_bump_va[len-(left--)] = *rp->esc_fifo;
|
||||
|
||||
memcpy( dev->sc_buf, dev->sc_bump_va, len-left);
|
||||
memcpy(dev->sc_buf, dev->sc_bump_va, len-left);
|
||||
}
|
||||
} else {
|
||||
/* Count any unsent bytes and flush them. */
|
||||
|
@ -1317,7 +1317,7 @@ esc_postaction(struct esc_softc *dev, esc_regmap_p rp, struct nexus *nexus)
|
|||
dev->sc_dma_len = len;
|
||||
|
||||
if (nexus->state == ESC_NS_DATA_OUT)
|
||||
memcpy( dev->sc_bump_va, dev->sc_buf, dev->sc_dma_len);
|
||||
memcpy(dev->sc_bump_va, dev->sc_buf, dev->sc_dma_len);
|
||||
} else {
|
||||
dev->sc_dma_buf = dev->sc_dma_blk_ptr;
|
||||
dev->sc_dma_len = dev->sc_dma_blk_len;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_ie.c,v 1.26 2009/05/12 06:54:10 cegger Exp $ */
|
||||
/* $NetBSD: if_ie.c,v 1.27 2009/05/16 16:40:58 cegger Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Melvin Tang-Richardson.
|
||||
|
@ -53,7 +53,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ie.c,v 1.26 2009/05/12 06:54:10 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ie.c,v 1.27 2009/05/16 16:40:58 cegger Exp $");
|
||||
|
||||
#define IGNORE_ETHER1_IDROM_CHECKSUM
|
||||
|
||||
|
@ -450,7 +450,7 @@ void ieattach ( struct device *parent, struct device *self, void *aux )
|
|||
|
||||
/* Fill in my application form to attach to the inet system */
|
||||
|
||||
memcpy( ifp->if_xname, device_xname(&sc->sc_dev), IFNAMSIZ);
|
||||
memcpy(ifp->if_xname, device_xname(&sc->sc_dev), IFNAMSIZ);
|
||||
ifp->if_softc = sc;
|
||||
ifp->if_start = iestart;
|
||||
ifp->if_ioctl = ieioctl;
|
||||
|
@ -1493,7 +1493,7 @@ iestart(struct ifnet *ifp)
|
|||
|
||||
for (m0 = m; m && (len + m->m_len) < IE_TXBUF_SIZE;
|
||||
m = m->m_next) {
|
||||
memcpy( buffer, mtod(m, void *), m->m_len);
|
||||
memcpy(buffer, mtod(m, void *), m->m_len);
|
||||
buffer += m->m_len;
|
||||
len += m->m_len;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sfas.c,v 1.19 2009/03/18 17:06:41 cegger Exp $ */
|
||||
/* $NetBSD: sfas.c,v 1.20 2009/05/16 16:40:58 cegger Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1990 The Regents of the University of California.
|
||||
|
@ -82,7 +82,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sfas.c,v 1.19 2009/03/18 17:06:41 cegger Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sfas.c,v 1.20 2009/05/16 16:40:58 cegger Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -739,7 +739,7 @@ sfas_setup_nexus(struct sfas_softc *dev, struct nexus *nexus, struct sfas_pendin
|
|||
/* Setup the nexus struct. */
|
||||
nexus->ID = ((mode & SFAS_SELECT_R) ? 0xC0 : 0x80) | lun;
|
||||
nexus->clen = clen;
|
||||
memcpy( nexus->cbuf, cbuf, nexus->clen);
|
||||
memcpy(nexus->cbuf, cbuf, nexus->clen);
|
||||
nexus->cbuf[1] |= lun << 5; /* Fix the lun bits */
|
||||
nexus->cur_link = 0;
|
||||
nexus->dma_len = 0;
|
||||
|
@ -1123,7 +1123,7 @@ sfas_midaction(struct sfas_softc *dev, sfas_regmap_p rp, struct nexus *nexus)
|
|||
&& left)
|
||||
dev->sc_bump_va[len-(left--)] = *rp->sfas_fifo;
|
||||
|
||||
memcpy( dev->sc_buf, dev->sc_bump_va, len-left);
|
||||
memcpy(dev->sc_buf, dev->sc_bump_va, len-left);
|
||||
}
|
||||
} else {
|
||||
/* Count any unsent bytes and flush them. */
|
||||
|
@ -1237,7 +1237,7 @@ sfas_postaction(struct sfas_softc *dev, sfas_regmap_p rp, struct nexus *nexus)
|
|||
dev->sc_dma_len = len;
|
||||
|
||||
if (nexus->state == SFAS_NS_DATA_OUT)
|
||||
memcpy( dev->sc_bump_va, dev->sc_buf, dev->sc_dma_len);
|
||||
memcpy(dev->sc_bump_va, dev->sc_buf, dev->sc_dma_len);
|
||||
} else {
|
||||
dev->sc_dma_buf = dev->sc_dma_blk_ptr;
|
||||
dev->sc_dma_len = dev->sc_dma_blk_len;
|
||||
|
|
Loading…
Reference in New Issue