summaryrefslogtreecommitdiff
path: root/sys/lib/libsa/alloc.c
diff options
context:
space:
mode:
authorsimonb <simonb@NetBSD.org>1999-04-01 02:41:08 +0000
committersimonb <simonb@NetBSD.org>1999-04-01 02:41:08 +0000
commite46b652af61bb9345df1791273beaa7afdd72a1d (patch)
tree3e585b21517f61c5568951c7da9654eb29d6c94d /sys/lib/libsa/alloc.c
parent2f832df90cd6eb2ef3b73d39fb4f29859b112113 (diff)
bestsize is unused if ALLOC_FIRST_FIT is defined.
Diffstat (limited to 'sys/lib/libsa/alloc.c')
-rw-r--r--sys/lib/libsa/alloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/lib/libsa/alloc.c b/sys/lib/libsa/alloc.c
index 31707ca8de0..83733b7cd8c 100644
--- a/sys/lib/libsa/alloc.c
+++ b/sys/lib/libsa/alloc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: alloc.c,v 1.11 1997/09/17 16:24:00 drochner Exp $ */
+/* $NetBSD: alloc.c,v 1.12 1999/04/01 02:41:08 simonb Exp $ */
/*
* Copyright (c) 1997 Christopher G. Demetriou. All rights reserved.
@@ -135,7 +135,9 @@ alloc(size)
unsigned size;
{
register struct fl **f = &freelist, **bestf = NULL;
+#ifndef ALLOC_FIRST_FIT
unsigned bestsize = 0xffffffff; /* greater than any real size */
+#endif
char *help;
int failed;