summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-10-15 00:08:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-10-15 00:08:52 +0000
commit2ee93b58dc692d67ad8663d7c79022bc25ea5abd (patch)
tree916b1536625e1171b27530c8c493e6e616f23ff4 /sys
parent00ef2a1e9e02edc36da2f96275e23cc56141693d (diff)
spl values are int; evol@online.ptt.ru
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/malloc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/malloc.h b/sys/sys/malloc.h
index 9519fabb3ac..b65db153911 100644
--- a/sys/sys/malloc.h
+++ b/sys/sys/malloc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: malloc.h,v 1.79 2005/07/03 20:14:00 drahn Exp $ */
+/* $OpenBSD: malloc.h,v 1.80 2005/10/15 00:08:51 deraadt Exp $ */
/* $NetBSD: malloc.h,v 1.39 1998/07/12 19:52:01 augustss Exp $ */
/*
@@ -409,7 +409,7 @@ struct kmembuckets {
#define MALLOC(space, cast, size, type, flags) do { \
u_long kbp_size = (u_long)(size); \
register struct kmembuckets *kbp = &bucket[BUCKETINDX(kbp_size)]; \
- long __s = splvm(); \
+ int __s = splvm(); \
if (kbp->kb_next == NULL) { \
(space) = (cast)malloc(kbp_size, type, flags); \
} else { \
@@ -422,7 +422,7 @@ struct kmembuckets {
#define FREE(addr, type) do { \
register struct kmembuckets *kbp; \
register struct kmemusage *kup = btokup(addr); \
- long __s = splvm(); \
+ int __s = splvm(); \
if (1 << kup->ku_indx > MAXALLOCSAVE) { \
free((caddr_t)(addr), type); \
} else { \