From 2e09a79ada1f6d92809a037d41895e3d9302ad59 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Fri, 7 Jun 2013 22:24:35 +0000 Subject: Avoid use of "register" as optimization hint. --- misc/getttyent.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'misc/getttyent.c') diff --git a/misc/getttyent.c b/misc/getttyent.c index b1e6376fb6..18944e2b99 100644 --- a/misc/getttyent.c +++ b/misc/getttyent.c @@ -47,7 +47,7 @@ struct ttyent * getttynam(tty) const char *tty; { - register struct ttyent *t; + struct ttyent *t; setttyent(); while ((t = getttyent())) @@ -64,8 +64,8 @@ struct ttyent * getttyent() { static struct ttyent tty; - register int c; - register char *p; + int c; + char *p; #define MAXLINELENGTH 100 static char line[MAXLINELENGTH]; @@ -142,10 +142,10 @@ libc_hidden_def (getttyent) static char * internal_function skip(p) - register char *p; + char *p; { - register char *t; - register int c, q; + char *t; + int c, q; for (q = 0, t = p; (c = *p) != '\0'; p++) { if (c == '"') { @@ -177,7 +177,7 @@ skip(p) static char * internal_function value(p) - register char *p; + char *p; { return ((p = index(p, '=')) ? ++p : NULL); -- cgit v1.2.3