removed all stupid register declarations

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1033 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-11-17 20:04:43 +00:00
parent 856df79afc
commit 239db0f710
37 changed files with 215 additions and 214 deletions

View File

@@ -62,7 +62,7 @@ getopt(nargc, nargv, ostr)
const char *ostr;
{
static char *place = EMSG; /* option letter processing */
register char *oli; /* option letter list index */
char *oli; /* option letter list index */
char *p;
if (optreset || !*place) { /* update scanning pointer */

View File

@@ -111,8 +111,8 @@ setusershell()
static char **
initshells()
{
register char **sp, *cp;
register FILE *fp;
char **sp, *cp;
FILE *fp;
struct stat statb;
if (shells != NULL)

View File

@@ -562,7 +562,7 @@ static int
glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern,
glob_t *pglob)
{
register struct dirent *dp;
struct dirent *dp;
DIR *dirp;
int err;
char buf[MaxPathLen];
@@ -597,8 +597,8 @@ glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern,
else
readdirfunc = (struct dirent *(*)(void *))readdir;
while ((dp = (*readdirfunc)(dirp))) {
register u_char *sc;
register Char *dc;
u_char *sc;
Char *dc;
/* Initial DOT must be matched literally. */
if (dp->d_name[0] == DOT && *pattern != DOT)
@@ -640,8 +640,8 @@ glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern,
static int
globextend(const Char *path, glob_t *pglob)
{
register char **pathv;
register int i;
char **pathv;
int i;
u_int newsize;
char *copy;
const Char *p;
@@ -726,8 +726,8 @@ match(Char *name, Char *pat, Char *patend)
void
globfree(glob_t *pglob)
{
register int i;
register char **pp;
int i;
char **pp;
if (pglob->gl_pathv != NULL) {
pp = pglob->gl_pathv + pglob->gl_offs;
@@ -805,7 +805,7 @@ g_strcat(Char *dst, const Char *src)
static void
g_Ctoc(const Char *str, char *buf)
{
register char *dc;
char *dc;
for (dc = buf; (*dc++ = *str++) != EOS;)
continue;
@@ -815,7 +815,7 @@ g_Ctoc(const Char *str, char *buf)
static void
qprintf(const Char *str, Char *s)
{
register Char *p;
Char *p;
(void)printf("%s:\n", str);
for (p = s; *p; p++)

View File

@@ -47,9 +47,9 @@ static
int
__icheckhost(u_int32_t raddr, const char *lhost)
{
register struct hostent *hp;
register u_long laddr;
register char **pp;
struct hostent *hp;
u_long laddr;
char **pp;
/* Try for raw ip address first. */
if (isdigit(*lhost) && (long)(laddr = inet_addr(lhost)) != -1)
@@ -84,7 +84,7 @@ static
int
__ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser)
{
register char *user, *p;
char *user, *p;
int ch;
char buf[MaxHostNameLen + 128]; /* host + login */
char hname[MaxHostNameLen];
@@ -210,7 +210,7 @@ __ivaliduser(FILE *hostf, u_int32_t raddr, const char *luser, const char *ruser)
int
iruserok(u_int32_t raddr, int superuser, const char *ruser, const char *luser)
{
register char *cp;
char *cp;
struct stat sbuf;
struct passwd *pwd;
FILE *hostf;

View File

@@ -264,8 +264,8 @@ static int
_secs(const struct tm *t)
{
static char buf[15];
register time_t s;
register char *p;
time_t s;
char *p;
struct tm tmp;
/* Make a copy, mktime(3) modifies the tm struct. */
@@ -281,7 +281,7 @@ static int
_conv(int n, int digits, int pad)
{
static char buf[10];
register char *p;
char *p;
for (p = buf + sizeof(buf) - 2; n > 0 && p > buf; n /= 10, --digits)
*p-- = n % 10 + '0';
@@ -292,7 +292,7 @@ _conv(int n, int digits, int pad)
static int
_add(str)
register char *str;
char *str;
{
for (;; ++pt, --gsize) {
if (!gsize)