return (0);
}
-static
-ConfigCell(register struct afsconf_cell *aci, char *arock,
+static int
+ConfigCell(register struct afsconf_cell *aci, void *arock,
struct afsconf_dir *adir)
{
register int isHomeCell;
}
static int
-ConfigCellAlias(aca, arock, adir)
- struct afsconf_cellalias *aca;
- char *arock;
- struct afsconf_dir *adir;
+ConfigCellAlias(struct afsconf_cellalias *aca, void *arock, struct afsconf_dir *adir)
{
call_syscall(AFSOP_ADDCELLALIAS, (long)aca->aliasName,
(long)aca->realName, 0, 0, 0);
return doSweepAFSCache(vFilesFound, cacheBaseDir, -2, maxDir);
}
-static
-ConfigCell(struct afsconf_cell *aci, char *arock, struct afsconf_dir *adir)
+static int
+ConfigCell(struct afsconf_cell *aci, void *arock, struct afsconf_dir *adir)
{
int isHomeCell;
int i, code;
static
ConfigCellAlias(struct afsconf_cellalias *aca,
- char *arock, struct afsconf_dir *adir)
+ void *arock, struct afsconf_dir *adir)
{
/* push the alias into the kernel */
call_syscall(AFSOP_ADDCELLALIAS, aca->aliasName, aca->realName);
/* call aproc(entry, arock, adir) for all cells. Proc must return 0, or we'll stop early and return the code it returns */
int
afsconf_CellApply(struct afsconf_dir *adir,
- int (*aproc) (struct afsconf_cell * cell, char *arock,
- struct afsconf_dir * dir), char *arock)
+ int (*aproc) (struct afsconf_cell * cell, void *arock,
+ struct afsconf_dir * dir), void *arock)
{
register struct afsconf_entry *tde;
register afs_int32 code;
int
afsconf_CellAliasApply(struct afsconf_dir *adir,
int (*aproc) (struct afsconf_cellalias * alias,
- char *arock, struct afsconf_dir * dir),
- char *arock)
+ void *arock, struct afsconf_dir * dir),
+ void *arock)
{
register struct afsconf_aliasentry *tde;
register afs_int32 code;
extern struct afsconf_dir *afsconf_Open(register const char *adir);
extern int afsconf_CellApply(struct afsconf_dir *adir,
int (*aproc) (struct afsconf_cell * cell,
- char *arock,
+ void *arock,
struct afsconf_dir * dir),
- char *arock);
+ void *arock);
extern int afsconf_CellAliasApply(struct afsconf_dir *adir,
int (*aproc) (struct afsconf_cellalias *
- alias, char *arock,
+ alias, void *arock,
struct afsconf_dir * dir),
- char *arock);
+ void *arock);
extern int afsconf_GetExtendedCellInfo(struct afsconf_dir *adir,
char *acellName, char *aservice,
struct afsconf_cell *acellInfo,
#endif
#include <afs/cellconfig.h>
-PrintOneCell(ainfo, arock, adir)
- struct afsconf_cell *ainfo;
- char *arock;
- struct afsconf_dir *adir;
+int
+PrintOneCell(struct afsconf_cell *ainfo, void *arock, struct afsconf_dir *adir)
{
register int i;
long temp;
printf("failed to find afsprot service (%d)\n", code);
else {
printf("AFSPROT service:\n");
- PrintOneCell(&theCell, (char *)NULL, theDir);
+ PrintOneCell(&theCell, NULL, theDir);
}
code = afsconf_GetCellInfo(theDir, 0, "bozotheclown", &theCell);
if (code == 0)