Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Don't use alloca() - breaks compile on alpha (alloc...



details:   https://anonhg.NetBSD.org/src/rev/44587a78a3b4
branches:  trunk
changeset: 499374:44587a78a3b4
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Nov 18 15:58:13 2000 +0000

description:
Don't use alloca() - breaks compile on alpha (alloca is not prototyped
anywhere).

diffstat:

 sys/kern/vfs_bio.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (22 lines):

diff -r d3e0f8380063 -r 44587a78a3b4 sys/kern/vfs_bio.c
--- a/sys/kern/vfs_bio.c        Sat Nov 18 15:46:23 2000 +0000
+++ b/sys/kern/vfs_bio.c        Sat Nov 18 15:58:13 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vfs_bio.c,v 1.71 2000/11/14 22:22:02 thorpej Exp $     */
+/*     $NetBSD: vfs_bio.c,v 1.72 2000/11/18 15:58:13 simonb Exp $      */
 
 /*-
  * Copyright (c) 1994 Christopher G. Demetriou
@@ -998,11 +998,9 @@
        int s, i, j, count;
        struct buf *bp;
        struct bqueues *dp;
-       int *counts;
+       int counts[(MAXBSIZE / PAGE_SIZE) + 1];
        static char *bname[BQUEUES] = { "LOCKED", "LRU", "AGE", "EMPTY" };
 
-       counts = alloca((MAXBSIZE / PAGE_SIZE) + 1);
-
        for (dp = bufqueues, i = 0; dp < &bufqueues[BQUEUES]; dp++, i++) {
                count = 0;
                for (j = 0; j <= MAXBSIZE/PAGE_SIZE; j++)



Home | Main Index | Thread Index | Old Index