1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

lib/pam/examples/login: remove register keyword

This commit is contained in:
Jon Trulson 2018-06-27 15:26:28 -06:00
parent 02c70c739d
commit d5eff36867

View file

@ -874,7 +874,7 @@ verify_passwd()
static int static int
quotec(void) quotec(void)
{ {
register int c, i, num; int c, i, num;
switch (c = getc(stdin)) { switch (c = getc(stdin)) {
@ -936,8 +936,8 @@ getargs(char *in_line)
{ {
static char envbuf[MAXLINE]; static char envbuf[MAXLINE];
static char *args[MAXARGS]; static char *args[MAXARGS];
register char *ptr, **answer; char *ptr, **answer;
register int c; int c;
int state; int state;
for (ptr = envbuf; ptr < &envbuf[sizeof (envbuf)]; /* cstyle */) for (ptr = envbuf; ptr < &envbuf[sizeof (envbuf)]; /* cstyle */)
@ -1103,7 +1103,7 @@ static char *illegal[] = {
static int static int
legalenvvar(char *s) legalenvvar(char *s)
{ {
register char **p; char **p;
for (p = illegal; *p; p++) for (p = illegal; *p; p++)
if (strncmp(s, *p, strlen(*p)) == 0) if (strncmp(s, *p, strlen(*p)) == 0)
@ -1177,8 +1177,8 @@ static void
defaults(void) defaults(void)
{ {
extern int defcntl(); extern int defcntl();
register int flags; int flags;
register char *ptr; char *ptr;
if (defopen(Pndefault) == 0) { if (defopen(Pndefault) == 0) {
/* /*
@ -1378,7 +1378,7 @@ static void
doremoteterm(char *term) doremoteterm(char *term)
{ {
struct termios tp; struct termios tp;
register char *cp = strchr(term, '/'), **cpp; char *cp = strchr(term, '/'), **cpp;
char *speed; char *speed;
(void) ioctl(0, TCGETS, &tp); (void) ioctl(0, TCGETS, &tp);