Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/9a26b091adb1
branches:  trunk
changeset: 485714:9a26b091adb1
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed May 03 19:17:54 2000 +0000

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

diffstat:

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

diffs (36 lines):

diff -r 94319dde05e7 -r 9a26b091adb1 sys/dev/ic/pdqvar.h
--- a/sys/dev/ic/pdqvar.h       Wed May 03 19:15:27 2000 +0000
+++ b/sys/dev/ic/pdqvar.h       Wed May 03 19:17:54 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pdqvar.h,v 1.26 1999/03/24 05:51:20 mrg Exp $  */
+/*     $NetBSD: pdqvar.h,v 1.27 2000/05/03 19:17:54 thorpej Exp $      */
 
 /*-
  * Copyright (c) 1995, 1996 Matt Thomas <matt%3am-software.com@localhost>
@@ -109,7 +109,7 @@
 #include <vm/vm_extern.h>
 #include <machine/cpufunc.h>
 #include <machine/clock.h>
-typedef void ifnet_ret_t;
+#define        ifnet_ret_t void
 typedef int ioctl_cmd_t;
 typedef enum { PDQ_BUS_EISA, PDQ_BUS_PCI } pdq_bus_t;
 typedef        u_int16_t pdq_bus_ioport_t;
@@ -127,7 +127,7 @@
 #include <net/if_media.h>
 #endif
 #include <machine/inline.h>
-typedef int ifnet_ret_t;
+#define        ifnet_ret_t int
 typedef int ioctl_cmd_t;
 typedef enum { PDQ_BUS_EISA, PDQ_BUS_PCI } pdq_bus_t;
 typedef        u_int16_t pdq_bus_ioport_t;
@@ -144,7 +144,7 @@
 #define PDQ_OS_HDR_OFFSET      (PDQ_RX_FC_OFFSET-3)
 #define        PDQ_OS_PTR_FMT          "%p"
 #define        PDQ_OS_CSR_FMT          "0x%lx"
-typedef void ifnet_ret_t;
+#define        ifnet_ret_t void
 typedef u_long ioctl_cmd_t;
 typedef        bus_space_tag_t pdq_bus_t;
 typedef        bus_space_handle_t pdq_bus_ioport_t;



Home | Main Index | Thread Index | Old Index