aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/inflate.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-12-29 05:07:58 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-12-29 05:07:58 +0000
commitc447342094276b4d604449bb776063c7b88c4992 (patch)
treeef56d86971063bc4ba98e49e723dab1d7ebf8a56 /sys/kern/inflate.c
parent664a31e4967a61ec61870f45adc2f1400617993e (diff)
Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"
is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come.
Notes
Notes: svn path=/head/; revision=55206
Diffstat (limited to 'sys/kern/inflate.c')
-rw-r--r--sys/kern/inflate.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/kern/inflate.c b/sys/kern/inflate.c
index f38e0bf07795..c101b7a2151e 100644
--- a/sys/kern/inflate.c
+++ b/sys/kern/inflate.c
@@ -14,13 +14,13 @@
#include <sys/param.h>
#include <sys/inflate.h>
-#ifdef KERNEL
+#ifdef _KERNEL
#include <sys/systm.h>
#include <sys/kernel.h>
#endif
#include <sys/malloc.h>
-#ifdef KERNEL
+#ifdef _KERNEL
static MALLOC_DEFINE(M_GZIP, "Gzip trees", "Gzip trees");
#endif
@@ -30,11 +30,11 @@ static MALLOC_DEFINE(M_GZIP, "Gzip trees", "Gzip trees");
#define ulg u_long
/* Stuff to make inflate() work */
-#ifdef KERNEL
+#ifdef _KERNEL
#define memzero(dest,len) bzero(dest,len)
#endif
#define NOMEMCPY
-#ifdef KERNEL
+#ifdef _KERNEL
#define FPRINTF printf
#else
extern void putstr (char *);
@@ -49,7 +49,7 @@ extern void putstr (char *);
static const int qflag = 0;
-#ifndef KERNEL /* want to use this file in kzip also */
+#ifndef _KERNEL /* want to use this file in kzip also */
extern unsigned char *kzipmalloc (int);
extern void kzipfree (void*);
#define malloc(x, y, z) kzipmalloc((x))
@@ -447,7 +447,7 @@ huft_build(glbl, b, n, s, d, e, t, m)
/* Generate counts for each bit length */
el = n > 256 ? b[256] : BMAX; /* set length of EOB code, if any */
-#ifdef KERNEL
+#ifdef _KERNEL
memzero((char *) c, sizeof(c));
#else
for (i = 0; i < BMAX+1; i++)
@@ -1045,14 +1045,14 @@ inflate(glbl)
struct inflate *glbl;
{
int i;
-#ifdef KERNEL
+#ifdef _KERNEL
u_char *p = NULL;
if (!glbl->gz_slide)
p = glbl->gz_slide = malloc(GZ_WSIZE, M_GZIP, M_WAITOK);
#endif
if (!glbl->gz_slide)
-#ifdef KERNEL
+#ifdef _KERNEL
return(ENOMEM);
#else
return 3; /* kzip expects 3 */
@@ -1067,7 +1067,7 @@ inflate(glbl)
huft_free(glbl, glbl->gz_fixed_tl);
glbl->gz_fixed_tl = (struct huft *) NULL;
}
-#ifdef KERNEL
+#ifdef _KERNEL
if (p == glbl->gz_slide) {
free(glbl->gz_slide, M_GZIP);
glbl->gz_slide = NULL;