mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-17 13:53:39 +00:00
stop use of register.
Obtained from: KAME MFC after: 1 week
This commit is contained in:
parent
86b032af6c
commit
8198209700
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=118662
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue