Correct a few sizeof()s
Submitted by: swildner@DragonFlyBSD.org Reviewed by: alfred
This commit is contained in:
parent
95ff9c1748
commit
a5a9ec51d6
@ -198,7 +198,7 @@ bcm_dma_reset(device_t dev, int ch)
|
||||
|
||||
/* Reset control block */
|
||||
cb = sc->sc_dma_ch[ch].cb;
|
||||
bzero(cb, sizeof(cb));
|
||||
bzero(cb, sizeof(*cb));
|
||||
cb->info = INFO_WAIT_RESP;
|
||||
}
|
||||
|
||||
|
@ -248,7 +248,7 @@ cfi_init(void)
|
||||
sizeof(struct cfi_lun_io),
|
||||
CTL_PORT_PRIV_SIZE);
|
||||
}
|
||||
memset(softc, 0, sizeof(softc));
|
||||
memset(softc, 0, sizeof(*softc));
|
||||
|
||||
mtx_init(&softc->lock, "CTL frontend mutex", NULL, MTX_DEF);
|
||||
softc->flags |= CTL_FLAG_MASTER_SHELF;
|
||||
|
@ -3596,7 +3596,7 @@ sppp_ipv6cp_RCR(struct sppp *sp, struct lcp_header *h, int len)
|
||||
continue;
|
||||
}
|
||||
|
||||
bzero(&suggestaddr, sizeof(&suggestaddr));
|
||||
bzero(&suggestaddr, sizeof(suggestaddr));
|
||||
if (collision && nohisaddr) {
|
||||
/* collision, hisaddr unknown - Conf-Rej */
|
||||
type = CONF_REJ;
|
||||
|
@ -618,7 +618,7 @@ fsk_detach(struct dn_fsk *fs, int flags)
|
||||
fs->sched->fp->free_fsk(fs);
|
||||
fs->sched = NULL;
|
||||
if (flags & DN_DELETE_FS) {
|
||||
bzero(fs, sizeof(fs)); /* safety */
|
||||
bzero(fs, sizeof(*fs)); /* safety */
|
||||
free(fs, M_DUMMYNET);
|
||||
dn_cfg.fsk_count--;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user