/*
* Copyright 2000, International Business Machines Corporation and others.
* All Rights Reserved.
- *
+ *
* This software has been released under the terms of the IBM Public
* License. For details, see the LICENSE file in the top-level source
* directory or online at http://www.openafs.org/dl/license10.html
#include <afsconfig.h>
#include <afs/param.h>
-
-RCSID
- ("$Header$");
-
#include <afs/stds.h>
-#include <sys/types.h>
-#include <errno.h>
-#include <stdio.h>
+
#include <sys/file.h>
-#include "cnvldb.h" /* CHANGEME! */
-#include <netinet/in.h>
#include <afs/venus.h>
#include <afs/cmd.h>
+#include <afs/afs_consts.h>
-#ifdef notdef
-#include <afs/vice.h>
-#undef VIRTUE
-#undef VICE
-#include "afs/prs_fs.h"
-#include <afs/afsint.h>
-#include <afs/cellconfig.h>
-#include <ubik.h>
-#endif
-#include <strings.h>
-
-#define MAXSIZE 2048 /* most I'll get back from PIOCTL */
-
+#include "cnvldb.h" /* CHANGEME! */
static char pn[] = "cnvldb";
static char tempname[] = "XXnewvldb";
-static char space[MAXSIZE];
+static char space[AFS_PIOCTL_MAXSIZE];
static int MaxServers[2] = { 30, 254 }; /* max server # permitted in this version */
#ifdef notdef /* postpone this... */
Parent(apath)
char *apath;
{
- register char *tp;
+ char *tp;
strcpy(tspace, apath);
tp = strrchr(tspace, '/');
if (tp) {
/* this function returns TRUE (1) if the file is in AFS, otherwise false (0) */
static int
InAFS(apath)
- register char *apath;
+ char *apath;
{
struct ViceIoctl blob;
- register afs_int32 code;
+ afs_int32 code;
blob.in_size = 0;
- blob.out_size = MAXSIZE;
+ blob.out_size = AFS_PIOCTL_MAXSIZE;
blob.out = space;
code = pioctl(apath, VIOC_FILE_CELL_NAME, &blob, 1);
static int
-ListQuotaCmd(register struct cmd_syndesc *as, void *arock)
+ListQuotaCmd(struct cmd_syndesc *as, void *arock)
{
- register afs_int32 code;
+ afs_int32 code;
struct ViceIoctl blob;
- register struct cmd_item *ti;
+ struct cmd_item *ti;
struct VolumeStatus *status;
char *name;
for (ti = as->parms[0].items; ti; ti = ti->next) {
/* once per file */
- blob.out_size = MAXSIZE;
+ blob.out_size = AFS_PIOCTL_MAXSIZE;
blob.in_size = 0;
blob.out = space;
code = pioctl(ti->data, VIOCGETVOLSTAT, &blob, 1);
int argc;
char **argv;
{
- register afs_int32 code;
+ afs_int32 code;
int old, new, rc;
short uvers;
char ubik[80]; /* space for some ubik header */