Removed explicit usage of the 'register' keyword.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/5/head
Michele Calgaro 4 years ago
parent 6142d389db
commit 4a0c933b07
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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];

Loading…
Cancel
Save