stop use of register.

Obtained from:	KAME
MFC after:	1 week
This commit is contained in:
ume 2003-08-08 16:47:06 +00:00
parent 02ba92cc97
commit bf86284d6c

View File

@ -120,8 +120,8 @@ int
getent(bp, name, cp)
char *bp, *name, *cp;
{
register int c;
register int i = 0, cnt = 0;
int c;
int i = 0, cnt = 0;
char ibuf[BUFSIZ];
int tf;
@ -190,7 +190,7 @@ getent(bp, name, cp)
int
tnchktc()
{
register char *p, *q;
char *p, *q;
char tcname[16]; /* name of similar terminal */
char tcbuf[BUFSIZ];
char *holdtbuf = tbuf;
@ -240,7 +240,7 @@ int
tnamatch(np)
char *np;
{
register char *Np, *Bp;
char *Np, *Bp;
Bp = tbuf;
if (*Bp == '#')
@ -265,7 +265,7 @@ tnamatch(np)
*/
static char *
tskip(bp)
register char *bp;
char *bp;
{
int dquote;
@ -312,9 +312,9 @@ long long
tgetnum(id)
char *id;
{
register long long i;
register int base;
register char *bp = tbuf;
long long i;
int base;
char *bp = tbuf;
for (;;) {
bp = tskip(bp);
@ -348,7 +348,7 @@ int
tgetflag(id)
char *id;
{
register char *bp = tbuf;
char *bp = tbuf;
for (;;) {
bp = tskip(bp);
@ -376,7 +376,7 @@ char *
tgetstr(id, area)
char *id, **area;
{
register char *bp = tbuf;
char *bp = tbuf;
for (;;) {
bp = tskip(bp);
@ -400,12 +400,12 @@ tgetstr(id, area)
*/
static char *
tdecode(str, area)
register char *str;
char *str;
char **area;
{
register char *cp;
register int c;
register char *dp;
char *cp;
int c;
char *dp;
int i;
char term;