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 char pwdbuf[1024];
register int i;
register char *cp;
int i;
char *cp;
char *fields[NFIELDS];
/*

View File

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