From: Christian Göttsche Date: Fri, 5 Aug 2022 15:40:29 +0000 (+0200) Subject: Drop register keyword X-Git-Tag: 4.12~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44917600b6ccf8044523d38f816be6ce3085d0ec;p=thirdparty%2Fshadow.git 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.) --- diff --git a/lib/sgetpwent.c b/lib/sgetpwent.c index 84a653d77..c6e5944c6 100644 --- a/lib/sgetpwent.c +++ b/lib/sgetpwent.c @@ -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]; /* diff --git a/libmisc/motd.c b/libmisc/motd.c index 23e27f241..7f7e523e6 100644 --- a/libmisc/motd.c +++ b/libmisc/motd.c @@ -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) {