fix fallout from caddr_t changes.

This commit is contained in:
yamt 2007-03-04 15:17:20 +00:00
parent dd46610b9b
commit 5b23251544
16 changed files with 48 additions and 48 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: api_up1000.c,v 1.22 2007/03/04 05:59:08 christos Exp $ */
/* $NetBSD: api_up1000.c,v 1.23 2007/03/04 15:18:09 yamt Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -34,7 +34,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: api_up1000.c,v 1.22 2007/03/04 05:59:08 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: api_up1000.c,v 1.23 2007/03/04 15:18:09 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -115,7 +115,7 @@ api_up1000_cons_init()
icp = &irongate_configuration;
irongate_init(icp, 0);
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_PRINTERPORT:

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_1000a.c,v 1.24 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_1000a.c,v 1.25 2007/03/04 15:18:09 yamt Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -72,7 +72,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_1000a.c,v 1.24 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_1000a.c,v 1.25 2007/03/04 15:18:09 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -188,7 +188,7 @@ dec_1000a_cons_init()
pcichipset = &acp->ac_pc;
}
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_PRINTERPORT:

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_2000_300.c,v 1.12 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_2000_300.c,v 1.13 2007/03/04 15:18:10 yamt Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_2000_300.c,v 1.12 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_2000_300.c,v 1.13 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -135,7 +135,7 @@ dec_2000_300_cons_init(void)
jcp = &jensenio_configuration;
jensenio_init(jcp, 0);
ctb = (struct ctb_tt *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb_tt *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
/*
* The Jensen uses an older (pre-Type 4) CTB format. The

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_2100_a50.c,v 1.60 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_2100_a50.c,v 1.61 2007/03/04 15:18:10 yamt Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -34,7 +34,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_2100_a50.c,v 1.60 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_2100_a50.c,v 1.61 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -139,7 +139,7 @@ dec_2100_a50_cons_init()
acp = &apecs_configuration;
apecs_init(acp, 0);
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_PRINTERPORT:

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_2100_a500.c,v 1.16 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_2100_a500.c,v 1.17 2007/03/04 15:18:10 yamt Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_2100_a500.c,v 1.16 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_2100_a500.c,v 1.17 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -159,7 +159,7 @@ dec_2100_a500_cons_init(void)
u_int64_t ctbslot;
struct ttwoga_config *tcp;
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
ctbslot = ctb->ctb_turboslot;
tcp = ttwoga_init(0, 0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_3000_300.c,v 1.42 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_3000_300.c,v 1.43 2007/03/04 15:18:10 yamt Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@ -33,7 +33,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_3000_300.c,v 1.42 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_3000_300.c,v 1.43 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -94,7 +94,7 @@ dec_3000_300_cons_init()
{
struct ctb *ctb;
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_GRAPHICS:

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_3000_500.c,v 1.41 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_3000_500.c,v 1.42 2007/03/04 15:18:10 yamt Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_3000_500.c,v 1.41 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_3000_500.c,v 1.42 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -114,7 +114,7 @@ dec_3000_500_cons_init()
{
struct ctb *ctb;
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_GRAPHICS:

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_550.c,v 1.29 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_550.c,v 1.30 2007/03/04 15:18:10 yamt Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -34,7 +34,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_550.c,v 1.29 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_550.c,v 1.30 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -126,7 +126,7 @@ dec_550_cons_init()
ccp = &cia_configuration;
cia_init(ccp, 0);
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_PRINTERPORT:

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_6600.c,v 1.25 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_6600.c,v 1.26 2007/03/04 15:18:10 yamt Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -31,7 +31,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_6600.c,v 1.25 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_6600.c,v 1.26 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -111,7 +111,7 @@ dec_6600_cons_init()
u_int64_t ctbslot;
struct tsp_config *tsp;
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
ctbslot = ctb->ctb_turboslot;
/* Console hose defaults to hose 0. */

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_alphabook1.c,v 1.20 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_alphabook1.c,v 1.21 2007/03/04 15:18:10 yamt Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -34,7 +34,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_alphabook1.c,v 1.20 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_alphabook1.c,v 1.21 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -119,7 +119,7 @@ dec_alphabook1_cons_init()
lcp = &lca_configuration;
lca_init(lcp, 0);
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_PRINTERPORT:

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_axppci_33.c,v 1.60 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_axppci_33.c,v 1.61 2007/03/04 15:18:10 yamt Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -34,7 +34,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_axppci_33.c,v 1.60 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_axppci_33.c,v 1.61 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -173,7 +173,7 @@ dec_axppci_33_cons_init()
lcp = lca_preinit();
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_PRINTERPORT:

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_eb64plus.c,v 1.35 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_eb64plus.c,v 1.36 2007/03/04 15:18:10 yamt Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -34,7 +34,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_eb64plus.c,v 1.35 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_eb64plus.c,v 1.36 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -129,7 +129,7 @@ dec_eb64plus_cons_init()
acp = &apecs_configuration;
apecs_init(acp, 0);
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_PRINTERPORT:

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_eb66.c,v 1.21 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_eb66.c,v 1.22 2007/03/04 15:18:10 yamt Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -34,7 +34,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_eb66.c,v 1.21 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_eb66.c,v 1.22 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -126,7 +126,7 @@ dec_eb66_cons_init()
lcp = &lca_configuration;
lca_init(lcp, 0);
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_PRINTERPORT:

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_kn20aa.c,v 1.58 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_kn20aa.c,v 1.59 2007/03/04 15:18:10 yamt Exp $ */
/*
* Copyright (c) 1995, 1996, 1997 Carnegie-Mellon University.
@ -34,7 +34,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_kn20aa.c,v 1.58 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_kn20aa.c,v 1.59 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -128,7 +128,7 @@ dec_kn20aa_cons_init()
ccp = &cia_configuration;
cia_init(ccp, 0);
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_PRINTERPORT:

View File

@ -1,4 +1,4 @@
/* $NetBSD: dec_kn300.c,v 1.33 2007/03/04 05:59:09 christos Exp $ */
/* $NetBSD: dec_kn300.c,v 1.34 2007/03/04 15:18:10 yamt Exp $ */
/*
* Copyright (c) 1998 by Matthew Jacob
@ -34,7 +34,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dec_kn300.c,v 1.33 2007/03/04 05:59:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: dec_kn300.c,v 1.34 2007/03/04 15:18:10 yamt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -165,7 +165,7 @@ dec_kn300_cons_init()
ccp = &mcpcia_console_configuration;
/* It's already initialized. */
ctb = (struct ctb *)(((void *)hwrpb) + hwrpb->rpb_ctb_off);
ctb = (struct ctb *)(((char *)hwrpb) + hwrpb->rpb_ctb_off);
switch (ctb->ctb_term_type) {
case CTB_PRINTERPORT:

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_se.c,v 1.64 2007/03/04 06:02:42 christos Exp $ */
/* $NetBSD: if_se.c,v 1.65 2007/03/04 15:17:20 yamt Exp $ */
/*
* Copyright (c) 1997 Ian W. Dall <ian.dall@dsto.defence.gov.au>
@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: if_se.c,v 1.64 2007/03/04 06:02:42 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: if_se.c,v 1.65 2007/03/04 15:17:20 yamt Exp $");
#include "opt_inet.h"
#include "opt_atalk.h"
@ -606,7 +606,7 @@ se_get(sc, data, totlen)
}
if (m == m0) {
void *newdata = (void *)
char *newdata = (char *)
ALIGN(m->m_data + sizeof(struct ether_header)) -
sizeof(struct ether_header);
len -= newdata - m->m_data;