diff options
author | 2001-02-13 19:51:49 +0000 | |
---|---|---|
committer | 2001-02-13 19:51:49 +0000 | |
commit | bc92f1bde0124223428f866065e5679c3863ed9f (patch) | |
tree | 459b86cd4bfc5da7f5993524b12265dcec26520e | |
parent | When detaching an interface set the if_start, if_ioctl and if_watchdog (diff) | |
download | wireguard-openbsd-bc92f1bde0124223428f866065e5679c3863ed9f.tar.xz wireguard-openbsd-bc92f1bde0124223428f866065e5679c3863ed9f.zip |
Use MIN, not min when counting the pages we steal.
min is a function taking u_int arguments and we are counting signed longs
here.
-rw-r--r-- | sys/kern/vfs_bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 1c44bc1c9da..3021d4bbd0d 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_bio.c,v 1.27 2000/06/23 02:14:38 mickey Exp $ */ +/* $OpenBSD: vfs_bio.c,v 1.28 2001/02/13 19:51:49 art Exp $ */ /* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */ /*- @@ -678,7 +678,7 @@ allocbuf(bp, size) binshash(nbp, &invalhash); /* and steal its pages, up to the amount we need */ - amt = min(nbp->b_bufsize, (desired_size - bp->b_bufsize)); + amt = MIN(nbp->b_bufsize, (desired_size - bp->b_bufsize)); pagemove((nbp->b_data + nbp->b_bufsize - amt), bp->b_data + bp->b_bufsize, amt); bp->b_bufsize += amt; |