From aa98dbfe80580169f3df12489a77e8b904a1d9b9 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 20:17:34 +0900 Subject: Removed explicit usage of the 'register' keyword. Signed-off-by: Michele Calgaro --- tdehtml/misc/htmlattrs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tdehtml/misc/htmlattrs.c') diff --git a/tdehtml/misc/htmlattrs.c b/tdehtml/misc/htmlattrs.c index 5ceaf351d..9bee3309a 100644 --- a/tdehtml/misc/htmlattrs.c +++ b/tdehtml/misc/htmlattrs.c @@ -57,7 +57,7 @@ inline #endif #endif static unsigned int -hash_attr (register const char *str, register unsigned int len) +hash_attr (register const char *str, unsigned int len) { static const unsigned short asso_values[] = { @@ -88,7 +88,7 @@ hash_attr (register const char *str, register unsigned int len) 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577, 577 }; - register int hval = len; + int hval = len; switch (hval) { @@ -831,19 +831,19 @@ inline #endif #endif const struct attrs * -findAttr (register const char *str, register unsigned int len) +findAttr (register const char *str, unsigned int len) { if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH) { - register int key = hash_attr (str, len); + int key = hash_attr (str, len); if (key <= MAX_HASH_VALUE && key >= 0) { - register int index = lookup[key]; + int index = lookup[key]; if (index >= 0) { - register const char *s = wordlist_attr[index].name + spool_attr; + const char *s = wordlist_attr[index].name + spool_attr; if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0') return &wordlist_attr[index]; -- cgit v1.2.1