Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/scsipi include "rnd.h" explicitely since the size of...



details:   https://anonhg.NetBSD.org/src/rev/d685bbc71689
branches:  trunk
changeset: 480886:d685bbc71689
user:      drochner <drochner%NetBSD.org@localhost>
date:      Sat Jan 22 16:35:25 2000 +0000

description:
include "rnd.h" explicitely since the size of sd_softc depends on it
(sd_scsi.c and sd_atapi.c missed it, leading to random memory corruption)

diffstat:

 sys/dev/scsipi/sdvar.h |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 6bd5918da0b2 -r d685bbc71689 sys/dev/scsipi/sdvar.h
--- a/sys/dev/scsipi/sdvar.h    Sat Jan 22 16:32:02 2000 +0000
+++ b/sys/dev/scsipi/sdvar.h    Sat Jan 22 16:35:25 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sdvar.h,v 1.10 2000/01/21 23:40:00 thorpej Exp $       */
+/*     $NetBSD: sdvar.h,v 1.11 2000/01/22 16:35:25 drochner Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -53,6 +53,11 @@
  * Ported to run under 386BSD by Julian Elischer (julian%dialix.oz.au@localhost) Sept 1992
  */
 
+#include "rnd.h"
+#if NRND > 0
+#include <sys/rnd.h>
+#endif
+
 #define        SDRETRIES       4
 
 struct sd_ops;



Home | Main Index | Thread Index | Old Index