From 4a0c933b077da15704d080d60f59c5abddefb9b6 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Thu, 30 Jan 2020 20:17:32 +0900 Subject: Removed explicit usage of the 'register' keyword. Signed-off-by: Michele Calgaro --- common/d3des.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/common/d3des.c b/common/d3des.c index 12ccf62..bbfa9d0 100644 --- a/common/d3des.c +++ b/common/d3des.c @@ -82,7 +82,7 @@ static const unsigned char pc2[48] = { void rfbDesKey(unsigned char *key, int edf) { - register int i, j, l, m, n; + int i, j, l, m, n; unsigned char pc1m[56], pcr[56]; unsigned long kn[32]; @@ -115,11 +115,11 @@ void rfbDesKey(unsigned char *key, return; } -static void cookey(register unsigned long *raw1) +static void cookey(unsigned long *raw1) { - register unsigned long *cook, *raw0; + unsigned long *cook, *raw0; unsigned long dough[32]; - register int i; + int i; cook = dough; for( i = 0; i < 16; i++, raw1++ ) { @@ -138,9 +138,9 @@ static void cookey(register unsigned long *raw1) } -void rfbUseKey(register unsigned long *from) +void rfbUseKey(unsigned long *from) { - register unsigned long *to, *endp; + unsigned long *to, *endp; to = KnL, endp = &KnL[32]; while( to < endp ) *to++ = *from++; @@ -158,8 +158,8 @@ void rfbDes(unsigned char *inblock, return; } -static void scrunch(register unsigned char *outof, - register unsigned long *into) +static void scrunch(unsigned char *outof, + unsigned long *into) { *into = (*outof++ & 0xffL) << 24; *into |= (*outof++ & 0xffL) << 16; @@ -172,8 +172,8 @@ static void scrunch(register unsigned char *outof, return; } -static void unscrun(register unsigned long *outof, - register unsigned char *into) +static void unscrun(unsigned long *outof, + unsigned char *into) { *into++ = (unsigned char)((*outof >> 24) & 0xffL); *into++ = (unsigned char)((*outof >> 16) & 0xffL); @@ -330,11 +330,11 @@ static const unsigned long SP8[64] = { 0x10041040L, 0x00041000L, 0x00041000L, 0x00001040L, 0x00001040L, 0x00040040L, 0x10000000L, 0x10041000L }; -static void desfunc(register unsigned long *block, - register unsigned long *keys) +static void desfunc(unsigned long *block, + unsigned long *keys) { - register unsigned long fval, work, right, leftt; - register int round; + unsigned long fval, work, right, leftt; + int round; leftt = block[0]; right = block[1]; -- cgit v1.2.3