fsint: remove dead code
[openafs.git] / src / vlserver / sascnvldb.c
index 956f3a3..b046e82 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * 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
@@ -9,37 +9,18 @@
 
 #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! */
 
-extern struct cmd_syndesc *cmd_CreateSyntax();
 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... */
@@ -95,7 +76,7 @@ static char *
 Parent(apath)
      char *apath;
 {
-    register char *tp;
+    char *tp;
     strcpy(tspace, apath);
     tp = strrchr(tspace, '/');
     if (tp) {
@@ -110,13 +91,13 @@ Parent(apath)
 /* 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);
@@ -148,19 +129,18 @@ QuickPrintStatus(status, name)
 }
 
 
-static
-ListQuotaCmd(as)
-     register struct cmd_syndesc *as;
+static int
+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);
@@ -251,7 +231,7 @@ main(argc, argv)
      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 */