summaryrefslogtreecommitdiff
path: root/sys/kern/inflate.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/inflate.c')
-rw-r--r--sys/kern/inflate.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/sys/kern/inflate.c b/sys/kern/inflate.c
index e842c8e80108..d7a480bb97d1 100644
--- a/sys/kern/inflate.c
+++ b/sys/kern/inflate.c
@@ -431,17 +431,17 @@ huft_build(struct inflate *glbl, unsigned *b, unsigned n, unsigned s,
unsigned f; /* i repeats in table every f entries */
int g; /* maximum code length */
int h; /* table level */
- register unsigned i; /* counter, current code */
- register unsigned j; /* counter */
- register int k; /* number of bits in current code */
+ unsigned i; /* counter, current code */
+ unsigned j; /* counter */
+ int k; /* number of bits in current code */
int lx[BMAX + 1]; /* memory for l[-1..BMAX-1] */
int *l = lx + 1; /* stack of bits per table */
- register unsigned *p; /* pointer into c[], b[], or v[] */
- register struct huft *q;/* points to current table */
+ unsigned *p; /* pointer into c[], b[], or v[] */
+ struct huft *q; /* points to current table */
struct huft r; /* table entry for structure assignment */
struct huft *u[BMAX];/* table stack */
unsigned v[N_MAX]; /* values in order of bit length */
- register int w; /* bits before this table == (l * h) */
+ int w; /* bits before this table == (l * h) */
unsigned x[BMAX + 1]; /* bit offsets, then code stack */
unsigned *xp; /* pointer into x */
int y; /* number of dummy codes added */
@@ -627,7 +627,7 @@ huft_free(struct inflate *glbl, struct huft *t)
list of the tables it made, with the links in a dummy first entry of
each table. */
{
- register struct huft *p, *q;
+ struct huft *p, *q;
/* Go through linked list, freeing from the malloced (t[-1]) address. */
p = t;
@@ -650,13 +650,13 @@ static int
inflate_codes(struct inflate *glbl, struct huft *tl, struct huft*td, int bl,
int bd)
{
- register unsigned e; /* table entry flag/number of extra bits */
+ unsigned e; /* table entry flag/number of extra bits */
unsigned n, d; /* length and index for copy */
unsigned w; /* current window position */
struct huft *t; /* pointer to table entry */
unsigned ml, md; /* masks for bl and bd bits */
- register ulg b; /* bit buffer */
- register unsigned k; /* number of bits in bit buffer */
+ ulg b; /* bit buffer */
+ unsigned k; /* number of bits in bit buffer */
/* make local copies of globals */
b = glbl->gz_bb; /* initialize bit buffer */
@@ -745,8 +745,8 @@ inflate_stored(struct inflate *glbl)
{
unsigned n; /* number of bytes in block */
unsigned w; /* current window position */
- register ulg b; /* bit buffer */
- register unsigned k; /* number of bits in bit buffer */
+ ulg b; /* bit buffer */
+ unsigned k; /* number of bits in bit buffer */
/* make local copies of globals */
b = glbl->gz_bb; /* initialize bit buffer */
@@ -849,8 +849,8 @@ inflate_dynamic(struct inflate *glbl)
unsigned ll[286 + 30]; /* literal/length and distance code
* lengths */
#endif
- register ulg b; /* bit buffer */
- register unsigned k; /* number of bits in bit buffer */
+ ulg b; /* bit buffer */
+ unsigned k; /* number of bits in bit buffer */
/* make local bit buffer */
b = glbl->gz_bb;
@@ -980,8 +980,8 @@ static int
inflate_block(struct inflate *glbl, int *e)
{
unsigned t; /* block type */
- register ulg b; /* bit buffer */
- register unsigned k; /* number of bits in bit buffer */
+ ulg b; /* bit buffer */
+ unsigned k; /* number of bits in bit buffer */
/* make local bit buffer */
b = glbl->gz_bb;