diff options
author | 1999-06-06 23:17:24 +0000 | |
---|---|---|
committer | 1999-06-06 23:17:24 +0000 | |
commit | 75c34306f4582ac48b2d51ac75032512e2f8caf8 (patch) | |
tree | a304a60ef617cf3a5d97a520a0c14dd9af4eed9e | |
parent | use inet_aton() instead of inet_addr() (diff) | |
download | wireguard-openbsd-75c34306f4582ac48b2d51ac75032512e2f8caf8.tar.xz wireguard-openbsd-75c34306f4582ac48b2d51ac75032512e2f8caf8.zip |
complete blind luck made this work without a volatile
-rw-r--r-- | sys/dev/pci/ncr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/ncr.c b/sys/dev/pci/ncr.c index 7ae22fec6b9..da4971db2e2 100644 --- a/sys/dev/pci/ncr.c +++ b/sys/dev/pci/ncr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ncr.c,v 1.45 1999/04/05 16:38:04 millert Exp $ */ +/* $OpenBSD: ncr.c,v 1.46 1999/06/06 23:17:24 deraadt Exp $ */ /* $NetBSD: ncr.c,v 1.63 1997/09/23 02:39:15 perry Exp $ */ /************************************************************************** @@ -1465,7 +1465,7 @@ static void ncr_attach (pcici_t tag, int unit); #if 0 static char ident[] = - "\n$OpenBSD: ncr.c,v 1.45 1999/04/05 16:38:04 millert Exp $\n"; + "\n$OpenBSD: ncr.c,v 1.46 1999/06/06 23:17:24 deraadt Exp $\n"; #endif static const u_long ncr_version = NCR_VERSION * 11 @@ -7566,7 +7566,7 @@ static int ncr_regtest (struct ncb* np) static int ncr_snooptest (struct ncb* np) { - u_int32_t ncr_rd, ncr_wr, ncr_bk, host_rd, host_wr, pc; + volatile u_int32_t ncr_rd, ncr_wr, ncr_bk, host_rd, host_wr, pc; int i, err=0; #if !defined(NCR_IOMAPPED) || defined(__OpenBSD__) #ifdef __OpenBSD__ |