diff options
author | 1998-11-20 06:58:51 +0000 | |
---|---|---|
committer | 1998-11-20 06:58:51 +0000 | |
commit | 572461dcc68e6201004fb449d103e9a0fd1f7d23 (patch) | |
tree | 30eda7af31c2581aa3c19f1c3745c0011c7f2113 | |
parent | Allocate space exponentially, not linearly for v?asprintf; mycroft@netbsd.org (diff) | |
download | wireguard-openbsd-572461dcc68e6201004fb449d103e9a0fd1f7d23.tar.xz wireguard-openbsd-572461dcc68e6201004fb449d103e9a0fd1f7d23.zip |
Add cast, from NetBSD.
-rw-r--r-- | sys/arch/hp300/hp300/mem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hp300/hp300/mem.c b/sys/arch/hp300/hp300/mem.c index d2d0bb61324..d8cda1d3e75 100644 --- a/sys/arch/hp300/hp300/mem.c +++ b/sys/arch/hp300/hp300/mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem.c,v 1.7 1998/08/31 17:42:28 millert Exp $ */ +/* $OpenBSD: mem.c,v 1.8 1998/11/20 06:58:51 downsj Exp $ */ /* $NetBSD: mem.c,v 1.17 1997/06/10 18:51:31 veego Exp $ */ /* @@ -235,7 +235,7 @@ mmmmap(dev, off, prot) /* * Allow access only in RAM. */ - if ((unsigned)off < lowram || (unsigned)off >= 0xFFFFFFFC) + if ((u_int)off < lowram || (u_int)off >= 0xFFFFFFFC) return (-1); - return (m68k_btop(off)); + return (m68k_btop((u_int)off)); } |