Commit 4e565367 authored by Dave Kleikamp's avatar Dave Kleikamp

Remove register keyword from JFS code

Submitted by Christoph Hellwig
parent a0780cdf
......@@ -3360,9 +3360,8 @@ static int dtCompare(component_t * key, /* search key */
dtpage_t * p, /* directory page */
int si)
{ /* entry slot index */
register int rc;
register wchar_t *kname, *name;
register int klen, namlen, len;
wchar_t *kname, *name;
int klen, namlen, len, rc;
idtentry_t *ih;
dtslot_t *t;
......@@ -3437,9 +3436,8 @@ static int ciCompare(component_t * key, /* search key */
int si, /* entry slot index */
int flag)
{
register int rc;
register wchar_t *kname, *name, x;
register int klen, namlen, len;
wchar_t *kname, *name, x;
int klen, namlen, len, rc;
ldtentry_t *lh;
idtentry_t *ih;
dtslot_t *t;
......@@ -3543,8 +3541,8 @@ static int ciCompare(component_t * key, /* search key */
static void ciGetLeafPrefixKey(dtpage_t * lp, int li, dtpage_t * rp,
int ri, component_t * key, int flag)
{
register int klen, namlen;
register wchar_t *pl, *pr, *kname;
int klen, namlen;
wchar_t *pl, *pr, *kname;
wchar_t lname[JFS_NAME_MAX + 1];
component_t lkey = { 0, lname };
wchar_t rname[JFS_NAME_MAX + 1];
......
......@@ -106,9 +106,9 @@ static inline wchar_t *UniStrncpy_le(wchar_t * ucs1, const wchar_t * ucs2,
/*
* UniToupper: Convert a unicode character to upper case
*/
static inline wchar_t UniToupper(register wchar_t uc)
static inline wchar_t UniToupper(wchar_t uc)
{
register UNICASERANGE *rp;
UNICASERANGE *rp;
if (uc < sizeof(UniUpperTable)) { /* Latin characters */
return uc + UniUpperTable[uc]; /* Use base tables */
......@@ -129,9 +129,9 @@ static inline wchar_t UniToupper(register wchar_t uc)
/*
* UniStrupr: Upper case a unicode string
*/
static inline wchar_t *UniStrupr(register wchar_t * upin)
static inline wchar_t *UniStrupr(wchar_t * upin)
{
register wchar_t *up;
wchar_t *up;
up = upin;
while (*up) { /* For all characters */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment