#ifdef AFS_NT40_ENV
static int GetCellNT(struct afsconf_dir *adir);
#endif
-static int afsconf_Check(register struct afsconf_dir *adir);
-static int afsconf_Touch(register struct afsconf_dir *adir);
+static int afsconf_Check(struct afsconf_dir *adir);
+static int afsconf_Touch(struct afsconf_dir *adir);
static int GetCellUnix(struct afsconf_dir *adir);
-static int afsconf_OpenInternal(register struct afsconf_dir *adir, char *cell,
+static int afsconf_OpenInternal(struct afsconf_dir *adir, char *cell,
char clones[]);
-static int ParseHostLine(char *aline, register struct sockaddr_in *addr,
+static int ParseHostLine(char *aline, struct sockaddr_in *addr,
char *aname, char *aclone);
-static int ParseCellLine(register char *aline, register char *aname,
- register char *alname);
-static int afsconf_CloseInternal(register struct afsconf_dir *adir);
-static int afsconf_Reopen(register struct afsconf_dir *adir);
+static int ParseCellLine(char *aline, char *aname,
+ char *alname);
+static int afsconf_CloseInternal(struct afsconf_dir *adir);
+static int afsconf_Reopen(struct afsconf_dir *adir);
static int SaveKeys(struct afsconf_dir *adir);
#ifndef T_AFSDB
TrimLine(char *abuffer, int abufsize)
{
char tbuffer[256];
- register char *tp;
- register int tc;
+ char *tp;
+ int tc;
tp = abuffer;
while ((tc = *tp)) {
static int
-afsconf_Check(register struct afsconf_dir *adir)
+afsconf_Check(struct afsconf_dir *adir)
{
char tbuffer[256];
#ifdef AFS_NT40_ENV
char *p;
#endif
struct stat tstat;
- register afs_int32 code;
+ afs_int32 code;
#ifdef AFS_NT40_ENV
/* NT client CellServDB has different file name than NT server or Unix */
/* set modtime on file */
static int
-afsconf_Touch(register struct afsconf_dir *adir)
+afsconf_Touch(struct afsconf_dir *adir)
{
char tbuffer[256];
#ifndef AFS_NT40_ENV
}
struct afsconf_dir *
-afsconf_Open(register const char *adir)
+afsconf_Open(const char *adir)
{
- register struct afsconf_dir *tdir;
- register afs_int32 code;
+ struct afsconf_dir *tdir;
+ afs_int32 code;
LOCK_GLOBAL_MUTEX;
/* zero structure and fill in name; rest is done by internal routine */
static int
-afsconf_OpenInternal(register struct afsconf_dir *adir, char *cell,
+afsconf_OpenInternal(struct afsconf_dir *adir, char *cell,
char clones[])
{
afsconf_FILE *tf;
- register char *tp, *bp;
- register struct afsconf_entry *curEntry;
+ char *tp, *bp;
+ struct afsconf_entry *curEntry;
struct afsconf_aliasentry *curAlias;
- register afs_int32 code;
+ afs_int32 code;
afs_int32 i;
char tbuffer[256], tbuf1[256];
struct stat tstat;
* into the appropriate pieces.
*/
static int
-ParseHostLine(char *aline, register struct sockaddr_in *addr, char *aname,
+ParseHostLine(char *aline, struct sockaddr_in *addr, char *aname,
char *aclone)
{
int c1, c2, c3, c4;
- register afs_int32 code;
- register char *tp;
+ afs_int32 code;
+ char *tp;
if (*aline == '[') {
if (aclone)
* into the appropriate pieces.
*/
static int
-ParseCellLine(register char *aline, register char *aname,
- register char *alname)
+ParseCellLine(char *aline, char *aname,
+ char *alname)
{
- register int code;
+ int code;
/* FIXME: length of aname, alname unknown here */
code = sscanf(aline, ">%s %s", aname, alname);
if (code == 1)
int (*aproc) (struct afsconf_cell * cell, void *arock,
struct afsconf_dir * dir), void *arock)
{
- register struct afsconf_entry *tde;
- register afs_int32 code;
+ struct afsconf_entry *tde;
+ afs_int32 code;
LOCK_GLOBAL_MUTEX;
for (tde = adir->entries; tde; tde = tde->next) {
code = (*aproc) (&tde->cellInfo, arock, adir);
void *arock, struct afsconf_dir * dir),
void *arock)
{
- register struct afsconf_aliasentry *tde;
- register afs_int32 code;
+ struct afsconf_aliasentry *tde;
+ afs_int32 code;
LOCK_GLOBAL_MUTEX;
for (tde = adir->alias_entries; tde; tde = tde->next) {
code = (*aproc) (&tde->aliasInfo, arock, adir);
afsconf_GetCellInfo(struct afsconf_dir *adir, char *acellName, char *aservice,
struct afsconf_cell *acellInfo)
{
- register struct afsconf_entry *tce;
+ struct afsconf_entry *tce;
struct afsconf_aliasentry *tcae;
struct afsconf_entry *bestce;
- register afs_int32 i;
+ afs_int32 i;
int tservice;
char *tcell;
int cnLen;
}
int
-afsconf_GetLocalCell(register struct afsconf_dir *adir, char *aname,
+afsconf_GetLocalCell(struct afsconf_dir *adir, char *aname,
afs_int32 alen)
{
static int afsconf_showcell = 0;
}
static int
-afsconf_CloseInternal(register struct afsconf_dir *adir)
+afsconf_CloseInternal(struct afsconf_dir *adir)
{
- register struct afsconf_entry *td, *nd;
+ struct afsconf_entry *td, *nd;
struct afsconf_aliasentry *ta, *na;
- register char *tname;
+ char *tname;
tname = adir->name; /* remember name, since that's all we preserve */
}
static int
-afsconf_Reopen(register struct afsconf_dir *adir)
+afsconf_Reopen(struct afsconf_dir *adir)
{
- register afs_int32 code;
+ afs_int32 code;
code = afsconf_CloseInternal(adir);
if (code)
return code;
afsconf_IntGetKeys(struct afsconf_dir *adir)
{
char tbuffer[256];
- register int fd;
+ int fd;
struct afsconf_keys *tstr;
- register afs_int32 code;
+ afs_int32 code;
#ifdef AFS_NT40_ENV
/* NT client config dir has no KeyFile; don't risk attempting open
int
afsconf_GetKeys(struct afsconf_dir *adir, struct afsconf_keys *astr)
{
- register afs_int32 code;
+ afs_int32 code;
LOCK_GLOBAL_MUTEX;
code = afsconf_Check(adir);
afsconf_GetLatestKey(struct afsconf_dir * adir, afs_int32 * avno,
struct ktc_encryptionKey *akey)
{
- register int i;
+ int i;
int maxa;
- register struct afsconf_key *tk;
- register afs_int32 best;
+ struct afsconf_key *tk;
+ afs_int32 best;
struct afsconf_key *bestk;
- register afs_int32 code;
+ afs_int32 code;
LOCK_GLOBAL_MUTEX;
code = afsconf_Check(adir);
afsconf_GetKey(void *rock, int avno, struct ktc_encryptionKey *akey)
{
struct afsconf_dir *adir = (struct afsconf_dir *) rock;
- register int i, maxa;
- register struct afsconf_key *tk;
- register afs_int32 code;
+ int i, maxa;
+ struct afsconf_key *tk;
+ afs_int32 code;
LOCK_GLOBAL_MUTEX;
code = afsconf_Check(adir);
SaveKeys(struct afsconf_dir *adir)
{
struct afsconf_keys tkeys;
- register int fd;
- register afs_int32 i;
+ int fd;
+ afs_int32 i;
char tbuffer[256];
memcpy(&tkeys, adir->keystr, sizeof(struct afsconf_keys));
afsconf_AddKey(struct afsconf_dir *adir, afs_int32 akvno, char akey[8],
afs_int32 overwrite)
{
- register struct afsconf_keys *tk;
- register struct afsconf_key *tkey;
- register afs_int32 i;
+ struct afsconf_keys *tk;
+ struct afsconf_key *tkey;
+ afs_int32 i;
int foundSlot;
LOCK_GLOBAL_MUTEX;
int
afsconf_DeleteKey(struct afsconf_dir *adir, afs_int32 akvno)
{
- register struct afsconf_keys *tk;
- register struct afsconf_key *tkey;
- register int i;
+ struct afsconf_keys *tk;
+ struct afsconf_key *tkey;
+ int i;
int foundFlag = 0;
LOCK_GLOBAL_MUTEX;