Drop register keyword

Compilers are free to ignore the indented hint and modern optimizations
should create good code by themself.

(As such it is for example deprecated in C++17.)
This commit is contained in:
Christian Göttsche 2022-08-05 17:40:29 +02:00 committed by Serge Hallyn
parent c5090d91a1
commit 44917600b6
2 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,8 @@ struct passwd *sgetpwent (const char *buf)
{ {
static struct passwd pwent; static struct passwd pwent;
static char pwdbuf[1024]; static char pwdbuf[1024];
register int i; int i;
register char *cp; char *cp;
char *fields[NFIELDS]; char *fields[NFIELDS];
/* /*

View File

@ -28,7 +28,7 @@ void motd (void)
char *motdlist; char *motdlist;
const char *motdfile; const char *motdfile;
char *mb; char *mb;
register int c; int c;
motdfile = getdef_str ("MOTD_FILE"); motdfile = getdef_str ("MOTD_FILE");
if (NULL == motdfile) { if (NULL == motdfile) {