summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2017-05-17 17:56:15 +0300
committerRobert Mustacchi <rm@joyent.com>2017-05-29 20:49:09 +0000
commit1a1df1dbef1b5c57672433301a296dfe4311e6db (patch)
treec9729db49b3fa09316574e55ce282ce89cd70151 /usr/src
parent45681b8b0e59cad83c1547d78e25d4b7f218d635 (diff)
downloadillumos-joyent-1a1df1dbef1b5c57672433301a296dfe4311e6db.tar.gz
8247 uts: Remove archaic register keyword from zmod
Reviewed by: Jason King <jason.brian.king+illumos@gmail.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/common/zmod/adler32.c2
-rw-r--r--usr/src/uts/common/zmod/crc32.c10
-rw-r--r--usr/src/uts/common/zmod/crc32.h2
-rw-r--r--usr/src/uts/common/zmod/deflate.c32
-rw-r--r--usr/src/uts/common/zmod/deflate.h2
-rw-r--r--usr/src/uts/common/zmod/inffast.c2
-rw-r--r--usr/src/uts/common/zmod/inffast.h2
-rw-r--r--usr/src/uts/common/zmod/inffixed.h2
-rw-r--r--usr/src/uts/common/zmod/inflate.c2
-rw-r--r--usr/src/uts/common/zmod/inflate.h2
-rw-r--r--usr/src/uts/common/zmod/inftrees.c2
-rw-r--r--usr/src/uts/common/zmod/inftrees.h2
-rw-r--r--usr/src/uts/common/zmod/trees.c4
-rw-r--r--usr/src/uts/common/zmod/zconf.h2
-rw-r--r--usr/src/uts/common/zmod/zlib.h2
-rw-r--r--usr/src/uts/common/zmod/zlib_lint.c2
-rw-r--r--usr/src/uts/common/zmod/zmod_subr.c2
-rw-r--r--usr/src/uts/common/zmod/zutil.c2
-rw-r--r--usr/src/uts/common/zmod/zutil.h2
19 files changed, 20 insertions, 58 deletions
diff --git a/usr/src/uts/common/zmod/adler32.c b/usr/src/uts/common/zmod/adler32.c
index 59d84632ed..e151bd700b 100644
--- a/usr/src/uts/common/zmod/adler32.c
+++ b/usr/src/uts/common/zmod/adler32.c
@@ -3,8 +3,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#define ZLIB_INTERNAL
#include "zlib.h"
diff --git a/usr/src/uts/common/zmod/crc32.c b/usr/src/uts/common/zmod/crc32.c
index 61ad581ef5..e887a5336c 100644
--- a/usr/src/uts/common/zmod/crc32.c
+++ b/usr/src/uts/common/zmod/crc32.c
@@ -14,8 +14,6 @@
* factor of two increase in speed on a Power PC G4 (PPC7455) using gcc -O3.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
Note on the use of DYNAMIC_CRC_TABLE: there is no mutex or semaphore
protection on the static variables used to control the first-use generation
@@ -269,8 +267,8 @@ local unsigned long crc32_little(crc, buf, len)
const unsigned char FAR *buf;
unsigned len;
{
- register u4 c;
- register const u4 FAR *buf4;
+ u4 c;
+ const u4 FAR *buf4;
c = (u4)crc;
c = ~c;
@@ -309,8 +307,8 @@ local unsigned long crc32_big(crc, buf, len)
const unsigned char FAR *buf;
unsigned len;
{
- register u4 c;
- register const u4 FAR *buf4;
+ u4 c;
+ const u4 FAR *buf4;
c = REV((u4)crc);
c = ~c;
diff --git a/usr/src/uts/common/zmod/crc32.h b/usr/src/uts/common/zmod/crc32.h
index 495c83e031..8053b6117c 100644
--- a/usr/src/uts/common/zmod/crc32.h
+++ b/usr/src/uts/common/zmod/crc32.h
@@ -2,8 +2,6 @@
* Generated automatically by crc32.c
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
local const unsigned long FAR crc_table[TBLS][256] =
{
{
diff --git a/usr/src/uts/common/zmod/deflate.c b/usr/src/uts/common/zmod/deflate.c
index 7847e40ba3..59beb0c78c 100644
--- a/usr/src/uts/common/zmod/deflate.c
+++ b/usr/src/uts/common/zmod/deflate.c
@@ -8,8 +8,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* ALGORITHM
*
@@ -1035,9 +1033,9 @@ local uInt longest_match(s, cur_match)
IPos cur_match; /* current match */
{
unsigned chain_length = s->max_chain_length;/* max hash chain length */
- register Bytef *scan = s->window + s->strstart; /* current string */
- register Bytef *match; /* matched string */
- register int len; /* length of current match */
+ Bytef *scan = s->window + s->strstart; /* current string */
+ Bytef *match; /* matched string */
+ int len; /* length of current match */
int best_len = s->prev_length; /* best match length so far */
int nice_match = s->nice_match; /* stop if match long enough */
IPos limit = s->strstart > (IPos)MAX_DIST(s) ?
@@ -1052,13 +1050,13 @@ local uInt longest_match(s, cur_match)
/* Compare two bytes at a time. Note: this is not always beneficial.
* Try with and without -DUNALIGNED_OK to check.
*/
- register Bytef *strend = s->window + s->strstart + MAX_MATCH - 1;
- register ush scan_start = *(ushf*)scan;
- register ush scan_end = *(ushf*)(scan+best_len-1);
+ Bytef *strend = s->window + s->strstart + MAX_MATCH - 1;
+ ush scan_start = *(ushf*)scan;
+ ush scan_end = *(ushf*)(scan+best_len-1);
#else
- register Bytef *strend = s->window + s->strstart + MAX_MATCH;
- register Byte scan_end1 = scan[best_len-1];
- register Byte scan_end = scan[best_len];
+ Bytef *strend = s->window + s->strstart + MAX_MATCH;
+ Byte scan_end1 = scan[best_len-1];
+ Byte scan_end = scan[best_len];
#endif
/* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
@@ -1182,10 +1180,10 @@ local uInt longest_match_fast(s, cur_match)
deflate_state *s;
IPos cur_match; /* current match */
{
- register Bytef *scan = s->window + s->strstart; /* current string */
- register Bytef *match; /* matched string */
- register int len; /* length of current match */
- register Bytef *strend = s->window + s->strstart + MAX_MATCH;
+ Bytef *scan = s->window + s->strstart; /* current string */
+ Bytef *match; /* matched string */
+ int len; /* length of current match */
+ Bytef *strend = s->window + s->strstart + MAX_MATCH;
/* The code is optimized for HASH_BITS >= 8 and MAX_MATCH-2 multiple of 16.
* It is easy to get rid of this optimization if necessary.
@@ -1272,8 +1270,8 @@ local void check_match(s, start, match, length)
local void fill_window(s)
deflate_state *s;
{
- register unsigned n, m;
- register Posf *p;
+ unsigned n, m;
+ Posf *p;
unsigned more; /* Amount of free space at the end of the window. */
uInt wsize = s->w_size;
diff --git a/usr/src/uts/common/zmod/deflate.h b/usr/src/uts/common/zmod/deflate.h
index d01a3c10e4..ada017d9bd 100644
--- a/usr/src/uts/common/zmod/deflate.h
+++ b/usr/src/uts/common/zmod/deflate.h
@@ -11,8 +11,6 @@
#ifndef _DEFLATE_H
#define _DEFLATE_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "zutil.h"
/* define NO_GZIP when compiling if you want to disable gzip header and
diff --git a/usr/src/uts/common/zmod/inffast.c b/usr/src/uts/common/zmod/inffast.c
index a6dcf3f5c8..bbee92ed1e 100644
--- a/usr/src/uts/common/zmod/inffast.c
+++ b/usr/src/uts/common/zmod/inffast.c
@@ -3,8 +3,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "zutil.h"
#include "inftrees.h"
#include "inflate.h"
diff --git a/usr/src/uts/common/zmod/inffast.h b/usr/src/uts/common/zmod/inffast.h
index 2d214efa29..1e88d2d97b 100644
--- a/usr/src/uts/common/zmod/inffast.h
+++ b/usr/src/uts/common/zmod/inffast.h
@@ -3,8 +3,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. Applications should only use zlib.h.
diff --git a/usr/src/uts/common/zmod/inffixed.h b/usr/src/uts/common/zmod/inffixed.h
index ed55df8991..75ed4b5978 100644
--- a/usr/src/uts/common/zmod/inffixed.h
+++ b/usr/src/uts/common/zmod/inffixed.h
@@ -2,8 +2,6 @@
* Generated automatically by makefixed().
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* WARNING: this file should *not* be used by applications. It
is part of the implementation of the compression library and
is subject to change. Applications should only use zlib.h.
diff --git a/usr/src/uts/common/zmod/inflate.c b/usr/src/uts/common/zmod/inflate.c
index 023e7a121c..64ebf874fb 100644
--- a/usr/src/uts/common/zmod/inflate.c
+++ b/usr/src/uts/common/zmod/inflate.c
@@ -8,8 +8,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Change history:
*
diff --git a/usr/src/uts/common/zmod/inflate.h b/usr/src/uts/common/zmod/inflate.h
index 4d28b22177..07bd3e78a7 100644
--- a/usr/src/uts/common/zmod/inflate.h
+++ b/usr/src/uts/common/zmod/inflate.h
@@ -3,8 +3,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. Applications should only use zlib.h.
diff --git a/usr/src/uts/common/zmod/inftrees.c b/usr/src/uts/common/zmod/inftrees.c
index 2d37167530..db4c30bf85 100644
--- a/usr/src/uts/common/zmod/inftrees.c
+++ b/usr/src/uts/common/zmod/inftrees.c
@@ -3,8 +3,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "zutil.h"
#include "inftrees.h"
diff --git a/usr/src/uts/common/zmod/inftrees.h b/usr/src/uts/common/zmod/inftrees.h
index 546e8c082f..b1104c87e7 100644
--- a/usr/src/uts/common/zmod/inftrees.h
+++ b/usr/src/uts/common/zmod/inftrees.h
@@ -3,8 +3,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/* WARNING: this file should *not* be used by applications. It is
part of the implementation of the compression library and is
subject to change. Applications should only use zlib.h.
diff --git a/usr/src/uts/common/zmod/trees.c b/usr/src/uts/common/zmod/trees.c
index ce0cebc030..b6f5dc2b9f 100644
--- a/usr/src/uts/common/zmod/trees.c
+++ b/usr/src/uts/common/zmod/trees.c
@@ -3,8 +3,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* ALGORITHM
*
@@ -1147,7 +1145,7 @@ local unsigned bi_reverse(code, len)
unsigned code; /* the value to invert */
int len; /* its bit length */
{
- register unsigned res = 0;
+ unsigned res = 0;
do {
res |= code & 1;
code >>= 1, res <<= 1;
diff --git a/usr/src/uts/common/zmod/zconf.h b/usr/src/uts/common/zmod/zconf.h
index ccce7b2742..bf91b5cd08 100644
--- a/usr/src/uts/common/zmod/zconf.h
+++ b/usr/src/uts/common/zmod/zconf.h
@@ -27,8 +27,6 @@
#ifndef _ZCONF_H
#define _ZCONF_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/types.h>
diff --git a/usr/src/uts/common/zmod/zlib.h b/usr/src/uts/common/zmod/zlib.h
index 9b971a0f57..d9f3464c66 100644
--- a/usr/src/uts/common/zmod/zlib.h
+++ b/usr/src/uts/common/zmod/zlib.h
@@ -31,8 +31,6 @@
#ifndef _ZLIB_H
#define _ZLIB_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "zconf.h"
#ifdef __cplusplus
diff --git a/usr/src/uts/common/zmod/zlib_lint.c b/usr/src/uts/common/zmod/zlib_lint.c
index abc9d25624..231d936966 100644
--- a/usr/src/uts/common/zmod/zlib_lint.c
+++ b/usr/src/uts/common/zmod/zlib_lint.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/types.h>
#include <sys/zmod.h>
diff --git a/usr/src/uts/common/zmod/zmod_subr.c b/usr/src/uts/common/zmod/zmod_subr.c
index 000925753f..8dcbd53152 100644
--- a/usr/src/uts/common/zmod/zmod_subr.c
+++ b/usr/src/uts/common/zmod/zmod_subr.c
@@ -24,8 +24,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include <sys/systm.h>
#include <sys/cmn_err.h>
#include <sys/kobj.h>
diff --git a/usr/src/uts/common/zmod/zutil.c b/usr/src/uts/common/zmod/zutil.c
index 7d46e30b3e..5b71613e1b 100644
--- a/usr/src/uts/common/zmod/zutil.c
+++ b/usr/src/uts/common/zmod/zutil.c
@@ -8,8 +8,6 @@
* For conditions of distribution and use, see copyright notice in zlib.h
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#include "zutil.h"
#ifndef NO_DUMMY_DECL
diff --git a/usr/src/uts/common/zmod/zutil.h b/usr/src/uts/common/zmod/zutil.h
index 1d02c1d097..8bb8f06a79 100644
--- a/usr/src/uts/common/zmod/zutil.h
+++ b/usr/src/uts/common/zmod/zutil.h
@@ -16,8 +16,6 @@
#ifndef _ZUTIL_H
#define _ZUTIL_H
-#pragma ident "%Z%%M% %I% %E% SMI"
-
#define ZLIB_INTERNAL
#include "zlib.h"