From owner-freebsd-isdn Thu Oct 1 04:36:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA03773 for freebsd-isdn-outgoing; Thu, 1 Oct 1998 04:36:14 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from harvey.aball.de (harvey.aball.de [194.77.82.26]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id EAA03760 for ; Thu, 1 Oct 1998 04:36:08 -0700 (PDT) (envelope-from alice.turbocat.de!dave@harvey.aball.de) Received: by harvey.aball.de (Smail3.1.28.1 #11) id m0zOh1M-000IuQC; Thu, 1 Oct 98 13:35 MET DST Received: from cat.turbocat.de (cat.turbocat.de [194.77.82.49]) by alice.turbocat.de (8.8.8/8.7.3) with ESMTP id NAA02691; Thu, 1 Oct 1998 13:33:50 +0200 (CEST) Received: (from dave@localhost) by cat.turbocat.de (8.8.5/8.7.3) id NAA00377; Thu, 1 Oct 1998 13:33:51 +0200 (MET DST) Message-Id: <199810011133.NAA00377@cat.turbocat.de> Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 4.2mach v148) Received: by NeXT.Mailer (1.148) From: David Wetzel Date: Thu, 1 Oct 98 13:33:50 +0200 To: Benjamin Lorenz Subject: Re: structure has no member named `if_unit' cc: freebsd-isdn@FreeBSD.ORG References: <199810011042.MAA23825@toto.ps.uni-sb.de> Organisation: Turbocat's Development http://www.turbocat.de Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Benjamin Lorenz wrote: (...) > ../../../../i4b/driver/i4b_ipr.c:493: structure has no member named > `if_unit' *** Error code 1 I think, I contributed a patch for somthing like that some time ago. alice# diff -c /Net/alice/usr/src/i4b/driver/i4b_ipr.c.org /Net/alice/usr/src/i4b/driver/i4b_ipr.c *** /Net/alice/usr/src/i4b/driver/i4b_ipr.c.org Tue Jul 14 01:40:20 1998 --- /Net/alice/usr/src/i4b/driver/i4b_ipr.c Wed Jul 15 12:56:36 1998 *************** *** 461,468 **** --- 461,470 ---- { #ifdef __FreeBSD__ struct ipr_softc *sc = &ipr_softc[ifp->if_unit]; + int unit = ifp->if_unit; #else struct ipr_softc *sc = ifp->if_softc; + int unit = sc->sc_unit; #endif struct ifreq *ifr = (struct ifreq *)data; *************** *** 490,498 **** { /* disconnect ISDN line */ ! i4b_l4_drvrdisc(BDRV_IPR, ifp->if_unit); ! /* sc->sc_if.if_flags &= ~IFF_RUNNING; */ } if(ifr->ifr_flags & IFF_DEBUG) --- 492,500 ---- { /* disconnect ISDN line */ ! i4b_l4_drvrdisc(BDRV_IPR, unit); ! /* sc->sc_if.if_flags &= ~IFF_RUNNING; */ } if(ifr->ifr_flags & IFF_DEBUG) ls -l /Net/alice/usr/src/i4b/driver/i4b_ipr.c.org /Net/alice/usr/src/i4b/driver/i4b_ipr.c -rw-r--r-- 1 dave wheel 26139 Jul 15 12:56 /Net/alice/usr/src/i4b/driver/i4b_ipr.c -rw-r--r-- 1 root wheel 26098 Jul 14 01:40 /Net/alice/usr/src/i4b/driver/i4b_ipr.c.org --- _ _ _(_)(_)_ David Wetzel, Turbocat's Development, (_) __ (_) Buchhorster Strasse, D-16567 Muehlenbeck/Berlin, FRG, _/ \_ Fax +49 33056 82835 NeXTmail dave@turbocat.de (______) http://www.turbocat.de/ DEVELOPMENT * CONSULTING * ADMINISTRATION WATCH OUT FOR TURBOFAX for OPENSTEP! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message