Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/stand Explicit cast for netif.



details:   https://anonhg.NetBSD.org/src/rev/6e76f609c5c7
branches:  trunk
changeset: 544156:6e76f609c5c7
user:      hannken <hannken%NetBSD.org@localhost>
date:      Thu Mar 13 12:02:54 2003 +0000

description:
Explicit cast for netif.

Approved by: Matthias Drochner <drochner%netbsd.org@localhost>

diffstat:

 sys/arch/sparc/stand/common/netif_sun.c |  6 +++---
 sys/arch/sparc/stand/ofwboot/netif_of.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 3907a4b41fd9 -r 6e76f609c5c7 sys/arch/sparc/stand/common/netif_sun.c
--- a/sys/arch/sparc/stand/common/netif_sun.c   Thu Mar 13 11:57:23 2003 +0000
+++ b/sys/arch/sparc/stand/common/netif_sun.c   Thu Mar 13 12:02:54 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netif_sun.c,v 1.5 2003/02/26 17:39:08 pk Exp $ */
+/*     $NetBSD: netif_sun.c,v 1.6 2003/03/13 12:02:54 hannken Exp $    */
 
 /*
  * Copyright (c) 1995 Gordon W. Ross
@@ -133,7 +133,7 @@
        ssize_t rv;
        size_t sendlen;
 
-       pd = (struct promdata *)desc->io_netif->nif_devdata;
+       pd = (struct promdata *)((struct netif *)desc->io_netif)->nif_devdata;
 
 #ifdef NETIF_DEBUG
        if (netif_debug) {
@@ -181,7 +181,7 @@
        int tick0;
        ssize_t len;
 
-       pd = (struct promdata *)desc->io_netif->nif_devdata;
+       pd = (struct promdata *)((struct netif *)desc->io_netif)->nif_devdata;
 
 #ifdef NETIF_DEBUG
        if (netif_debug)
diff -r 3907a4b41fd9 -r 6e76f609c5c7 sys/arch/sparc/stand/ofwboot/netif_of.c
--- a/sys/arch/sparc/stand/ofwboot/netif_of.c   Thu Mar 13 11:57:23 2003 +0000
+++ b/sys/arch/sparc/stand/ofwboot/netif_of.c   Thu Mar 13 12:02:54 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: netif_of.c,v 1.1 2000/08/20 14:58:39 mrg Exp $ */
+/*     $NetBSD: netif_of.c,v 1.2 2003/03/13 12:02:54 hannken Exp $     */
 
 /*
  * Copyright (C) 1995 Wolfgang Solfrank.
@@ -148,7 +148,7 @@
        ssize_t rv;
        size_t sendlen;
 
-       op = desc->io_netif->nif_devdata;
+       op = ((struct netif *)desc->io_netif)->nif_devdata;
 
 #ifdef NETIF_DEBUG
        {
@@ -195,7 +195,7 @@
        int tick0, tmo_ms;
        int len;
 
-       op = desc->io_netif->nif_devdata;
+       op = ((struct netif *)desc->io_netif)->nif_devdata;
 
 #ifdef NETIF_DEBUG
        printf("netif_get: pkt=0x%x, maxlen=%d, tmo=%d\n",



Home | Main Index | Thread Index | Old Index