remove register from variable declarations
This commit is contained in:
@@ -88,7 +88,7 @@ boolean
|
||||
pcmain(int argc, char *argv[])
|
||||
{
|
||||
NHFILE *nhfp;
|
||||
register char *dir;
|
||||
char *dir;
|
||||
#if defined(MSDOS)
|
||||
char *envp = NULL;
|
||||
char *sptr = NULL;
|
||||
|
||||
@@ -39,7 +39,7 @@ static int eraseoldlocks(void);
|
||||
static int
|
||||
eraseoldlocks(void)
|
||||
{
|
||||
register int i;
|
||||
int i;
|
||||
|
||||
/* cannot use maxledgerno() here, because we need to find a lock name
|
||||
* before starting everything (including the dungeon initialization
|
||||
@@ -63,7 +63,7 @@ eraseoldlocks(void)
|
||||
void
|
||||
getlock(void)
|
||||
{
|
||||
register int fd, c, ci, ct;
|
||||
int fd, c, ci, ct;
|
||||
int fcmask = FCMASK;
|
||||
char tbuf[BUFSZ];
|
||||
const char *fq_lock;
|
||||
@@ -201,13 +201,13 @@ gotlock:
|
||||
#endif /* PC_LOCKING */
|
||||
|
||||
void
|
||||
regularize(register char *s)
|
||||
regularize(char *s)
|
||||
/*
|
||||
* normalize file name - we don't like .'s, /'s, spaces, and
|
||||
* lots of other things
|
||||
*/
|
||||
{
|
||||
register char *lp;
|
||||
char *lp;
|
||||
|
||||
for (lp = s; *lp; lp++)
|
||||
if (*lp <= ' ' || *lp == '"' || (*lp >= '*' && *lp <= ',')
|
||||
|
||||
@@ -489,8 +489,8 @@ tputs(const char *string, /* characters to output */
|
||||
int (*output_func)(int)) /* actual output routine;
|
||||
* return value ignored */
|
||||
{
|
||||
register int c, num = 0;
|
||||
register const char *p = string;
|
||||
int c, num = 0;
|
||||
const char *p = string;
|
||||
|
||||
if (!p || !*p)
|
||||
return;
|
||||
|
||||
@@ -254,7 +254,7 @@ outdec(char *p, FILE *f, int n)
|
||||
|
||||
char *
|
||||
index(sp, c)
|
||||
register char *sp, c;
|
||||
char *sp, c;
|
||||
{
|
||||
do {
|
||||
if (*sp == c)
|
||||
|
||||
Reference in New Issue
Block a user