From 44917600b6ccf8044523d38f816be6ce3085d0ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Fri, 5 Aug 2022 17:40:29 +0200 Subject: [PATCH] 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.) --- lib/sgetpwent.c | 4 ++-- libmisc/motd.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/sgetpwent.c b/lib/sgetpwent.c index 84a653d7..c6e5944c 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 23e27f24..7f7e523e 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) {