From 728741e35ef93d7512a5934351c44bfaee7c1144 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 5 Aug 2019 13:02:29 +0200 Subject: Remove register qualifier. Let the compiler sort out register allocation. --- base64.c | 2 +- getpass.c | 4 ++-- md5c.c | 4 ++-- transact.c | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/base64.c b/base64.c index 3cd41691..9af84a48 100644 --- a/base64.c +++ b/base64.c @@ -66,7 +66,7 @@ int from64tobits(void *out_, const char *in, int maxlen) /* maxlen limits output buffer size, set to zero to ignore */ { int len = 0; - register unsigned char digit1, digit2, digit3, digit4; + unsigned char digit1, digit2, digit3, digit4; unsigned char *out = (unsigned char *)out_; if (in[0] == '+' && in[1] == ' ') diff --git a/getpass.c b/getpass.c index 3c19ba7c..307c8a6d 100644 --- a/getpass.c +++ b/getpass.c @@ -72,8 +72,8 @@ char *fm_getpassword(char *prompt) exit(1); #endif #else - register char *p; - register int c; + char *p; + int c; FILE *fi; static char pbuf[INPUT_BUF_SIZE]; SIGHANDLERTYPE sig = 0; /* initialization pacifies -Wall */ diff --git a/md5c.c b/md5c.c index 11a61516..98b4ef2c 100644 --- a/md5c.c +++ b/md5c.c @@ -59,7 +59,7 @@ void MD5Init(struct MD5Context *ctx) void MD5Update(struct MD5Context *ctx, const void *buf_, unsigned len) { const unsigned char *buf = (const unsigned char *)buf_; - register uint32_t t; + uint32_t t; /* Update bitcount */ @@ -165,7 +165,7 @@ void MD5Final(void *digest, struct MD5Context *ctx) */ void MD5Transform(uint32_t buf[4], uint32_t const in[16]) { - register uint32_t a, b, c, d; + uint32_t a, b, c, d; a = buf[0]; b = buf[1]; diff --git a/transact.c b/transact.c index 46a767eb..1f74a73c 100644 --- a/transact.c +++ b/transact.c @@ -1137,8 +1137,8 @@ process_headers: * they exist. If and only if they don't, consider * the "To" addresses. */ - register struct addrblk *nextptr; - if (outlevel >= O_DEBUG) + struct addrblk *nextptr; + if (outlevel >= O_DEBUG) report(stdout, GT_("No envelope recipient found, resorting to header guessing.\n")); if (resent_to_addrchain) { /* delete the "To" chain and substitute it -- cgit v1.2.3