Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci `typedef void ifnet_ret_t; ' isn't valid C -- use...



details:   https://anonhg.NetBSD.org/src/rev/69a30e2d0878
branches:  trunk
changeset: 485718:69a30e2d0878
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed May 03 20:52:29 2000 +0000

description:
`typedef void ifnet_ret_t;' isn't valid C -- use #define, instead.

diffstat:

 sys/dev/pci/if_devar.h |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r e52328157858 -r 69a30e2d0878 sys/dev/pci/if_devar.h
--- a/sys/dev/pci/if_devar.h    Wed May 03 20:17:37 2000 +0000
+++ b/sys/dev/pci/if_devar.h    Wed May 03 20:52:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_devar.h,v 1.34 2000/03/23 07:01:38 thorpej Exp $    */
+/*     $NetBSD: if_devar.h,v 1.35 2000/05/03 20:52:29 thorpej Exp $    */
 
 /*-
  * Copyright (c) 1994-1997 Matt Thomas (matt%3am-software.com@localhost)
@@ -915,7 +915,7 @@
 #endif
 
 #if defined(__FreeBSD__)
-typedef void ifnet_ret_t;
+#define        ifnet_ret_t void
 typedef int ioctl_cmd_t;
 #if defined(TULIP_HDR_DATA)
 static tulip_softc_t *tulips[TULIP_MAX_DEVICES];
@@ -951,7 +951,7 @@
 #endif
 
 #if defined(__bsdi__)
-typedef int ifnet_ret_t;
+#define        ifnet_ret_t int
 typedef u_long ioctl_cmd_t;
 extern struct cfdriver decd;
 #define        TULIP_UNIT_TO_SOFTC(unit)       ((tulip_softc_t *) decd.cd_devs[unit])
@@ -979,7 +979,7 @@
 #endif /* __bsdi__ */
 
 #if defined(__NetBSD__)
-typedef void ifnet_ret_t;
+#define        ifnet_ret_t void
 typedef u_long ioctl_cmd_t;
 extern struct cfattach de_ca;
 extern struct cfdriver de_cd;



Home | Main Index | Thread Index | Old Index