From 2a18c897d34bfa5efbbc079e1c130b8ce1d65652 Mon Sep 17 00:00:00 2001 From: matt Date: Thu, 8 Mar 2007 20:52:21 +0000 Subject: [PATCH] Fix more caddr_t -> void * lossage --- sys/dev/ofw/ofnet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ofw/ofnet.c b/sys/dev/ofw/ofnet.c index cb190079c65b..5d6dc8a4d8d3 100644 --- a/sys/dev/ofw/ofnet.c +++ b/sys/dev/ofw/ofnet.c @@ -1,4 +1,4 @@ -/* $NetBSD: ofnet.c,v 1.38 2007/03/04 06:02:15 christos Exp $ */ +/* $NetBSD: ofnet.c,v 1.39 2007/03/08 20:52:21 matt Exp $ */ /* * Copyright (C) 1995, 1996 Wolfgang Solfrank. @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ofnet.c,v 1.38 2007/03/04 06:02:15 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ofnet.c,v 1.39 2007/03/08 20:52:21 matt Exp $"); #include "ofnet.h" #include "opt_inet.h" @@ -245,7 +245,7 @@ ofnet_read(struct ofnet_softc *of) * XXX then so does other code in this driver. */ if (head == NULL) { - void *newdata = (void *)ALIGN(m->m_data + + char *newdata = (char *)ALIGN(m->m_data + sizeof(struct ether_header)) - sizeof(struct ether_header); l -= newdata - m->m_data;