summaryrefslogtreecommitdiffstats
path: root/hack/alloc.c
diff options
context:
space:
mode:
authordholland <dholland@NetBSD.org>2009-08-12 07:28:40 +0000
committerdholland <dholland@NetBSD.org>2009-08-12 07:28:40 +0000
commit8b1c71ee649fb41155da92995044e451c39ea700 (patch)
tree24e74c8d453828689bfeac45e6162912f3c42d76 /hack/alloc.c
parent31f496067cd42ce5ff71163efa5921ab6522e4aa (diff)
downloadbsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.gz
bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.tar.zst
bsdgames-darwin-8b1c71ee649fb41155da92995044e451c39ea700.zip
sprinkle static
Diffstat (limited to 'hack/alloc.c')
-rw-r--r--hack/alloc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/hack/alloc.c b/hack/alloc.c
index 74eaf234..9a972a13 100644
--- a/hack/alloc.c
+++ b/hack/alloc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: alloc.c,v 1.6 2009/06/07 18:30:39 dholland Exp $ */
+/* $NetBSD: alloc.c,v 1.7 2009/08/12 07:28:40 dholland Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: alloc.c,v 1.6 2009/06/07 18:30:39 dholland Exp $");
+__RCSID("$NetBSD: alloc.c,v 1.7 2009/08/12 07:28:40 dholland Exp $");
#endif /* not lint */
#include <stdlib.h>
@@ -100,7 +100,8 @@ alloc(unsigned lth)
return ((long *) ptr);
}
-long *
+#if 0 /* unused */
+static long *
enlarge(char *ptr, unsigned lth)
{
char *nptr;
@@ -109,5 +110,6 @@ enlarge(char *ptr, unsigned lth)
panic("Cannot reallocate %d bytes", lth);
return ((long *) nptr);
}
+#endif
#endif /* LINT */