summaryrefslogtreecommitdiffstats
path: root/sys/pci
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1995-03-31 00:05:08 +0000
committerse <se@FreeBSD.org>1995-03-31 00:05:08 +0000
commit916ed5a996532a3f3edcea3b613bfccd787416e5 (patch)
tree549fd22dabc3ec304662f220dd7b685ab8e71939 /sys/pci
parent87d561b0536c4cf7f7fd5cf682be3036005c02f1 (diff)
downloadFreeBSD-src-916ed5a996532a3f3edcea3b613bfccd787416e5.zip
FreeBSD-src-916ed5a996532a3f3edcea3b613bfccd787416e5.tar.gz
Include <stddef.h> for standard definition of offsetof() instead of
defining it explicitly in the driver.
Diffstat (limited to 'sys/pci')
-rw-r--r--sys/pci/ncr.c16
1 files changed, 4 insertions, 12 deletions
diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c
index 146c548..7b733ad 100644
--- a/sys/pci/ncr.c
+++ b/sys/pci/ncr.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: ncr.c,v 1.34 1995/03/22 11:00:23 se Exp $
+** $Id: ncr.c,v 1.35 1995/03/22 19:45:22 se Exp $
**
** Device driver for the NCR 53C810 PCI-SCSI-Controller.
**
@@ -155,6 +155,8 @@
**==========================================================
*/
+#include <stddef.h>
+
#include <sys/types.h>
#include <sys/param.h>
#include <sys/time.h>
@@ -434,16 +436,6 @@ struct usrcmd {
#define UF_TRACE (0x01)
-
-/*==========================================================
-**
-** Access to fields of structs.
-**
-**==========================================================
-*/
-
-#define offsetof(type, member) ((size_t)(&((type *)0)->member))
-
/*---------------------------------------
**
** Timestamps for profiling
@@ -1224,7 +1216,7 @@ static void ncr_attach (pcici_t tag, int unit);
static char ident[] =
- "\n$Id: ncr.c,v 1.34 1995/03/22 11:00:23 se Exp $\n";
+ "\n$Id: ncr.c,v 1.35 1995/03/22 19:45:22 se Exp $\n";
u_long ncr_version = NCR_VERSION
+ (u_long) sizeof (struct ncb)
OpenPOWER on IntegriCloud