bucoord: Set but not used variables
[openafs.git] / src / bucoord / vol_sets.c
index 23d85ca..a184511 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
@@ -27,8 +27,9 @@
 #include <afs/bubasics.h>
 #include "bc.h"
 #include "error_macros.h"
+#include "bucoord_internal.h"
 #include "bucoord_prototypes.h"
-    
+
 /* code to manage volumesets
  * specific to the ubik database implementation
  */
@@ -57,7 +58,7 @@ static int ListVolSet(struct bc_volumeSet *aset);
 int
 bc_AddVolEntryCmd(struct cmd_syndesc *as, void *arock)
 {
-    register int code;
+    int code;
     char *volSetName, *serverName, *partitionName, *volRegExp;
     udbClientTextP ctPtr;
     struct bc_volumeSet *tset;
@@ -129,8 +130,8 @@ int
 bc_AddVolSetCmd(struct cmd_syndesc *as, void *arock)
 {
     /* parm 0 is vol set name */
-    register int code;
-    register struct cmd_item *ti;
+    int code;
+    struct cmd_item *ti;
     udbClientTextP ctPtr;
     afs_int32 flags;
 
@@ -187,7 +188,7 @@ bc_AddVolSetCmd(struct cmd_syndesc *as, void *arock)
 int
 bc_DeleteVolEntryCmd(struct cmd_syndesc *as, void *arock)
 {
-    register int code;
+    int code;
     afs_int32 entry;
     char *vsname;
     udbClientTextP ctPtr;
@@ -275,8 +276,8 @@ int
 bc_DeleteVolSetCmd(struct cmd_syndesc *as, void *arock)
 {
     /* parm 0 is vol set name */
-    register int code;
-    register struct cmd_item *ti;
+    int code;
+    struct cmd_item *ti;
     udbClientTextP ctPtr;
     afs_int32 c;
     afs_int32 flags, tosave = 0;
@@ -358,8 +359,8 @@ int
 bc_ListVolSetCmd(struct cmd_syndesc *as, void *arock)
 {
     /* parm 0 is optional volume set to display */
-    register struct bc_volumeSet *tset;
-    register struct cmd_item *ti;
+    struct bc_volumeSet *tset;
+    struct cmd_item *ti;
     int code = 0;
 
     code = bc_UpdateVolumeSet();
@@ -436,23 +437,21 @@ bc_ParseVolumeSet(void)
     char vsname[256];          /*Volume set name */
     char serverName[256];      /*Server name */
     char partName[256];                /*Partition name */
-    register struct bc_volumeEntry *tve;       /*Ptr to generated volume spec struct */
-    register struct bc_volumeSet *tvs = NULL;  /*Ptr to volume set struct */
+    struct bc_volumeEntry *tve;        /*Ptr to generated volume spec struct */
+    struct bc_volumeSet *tvs = NULL;   /*Ptr to volume set struct */
     struct bc_volumeEntry **ppve, *pve;
     struct bc_volumeSet **ppvs, *pvs;
-    register afs_int32 code;   /*Generalized return code */
+    afs_int32 code;    /*Generalized return code */
     char *tp;                  /*Result of fgets(), malloc() */
     int readHeader;            /*Is next thing to read a volume set hdr? */
 
     udbClientTextP ctPtr;
-    register FILE *stream;
-    struct bc_config *configPtr;
+    FILE *stream;
 
     extern struct bc_config *bc_globalConfig;
 
     ctPtr = &bc_globalConfig->configText[TB_VOLUMESET];
     stream = ctPtr->textStream;
-    configPtr = bc_globalConfig;
 
     /*
      * Open up the volume set configuration file, fail if it can't be done.
@@ -504,7 +503,7 @@ bc_ParseVolumeSet(void)
            tvs->next = (struct bc_volumeSet *)0;
        } /*r */
        else {                  /*e */
-           /* Scan a volume name entry, which contains the server name, 
+           /* Scan a volume name entry, which contains the server name,
             * partition pattern, and volume pattern.
             */
            code = sscanf(tbuffer, "%s %s %s", serverName, partName, vsname);
@@ -516,8 +515,8 @@ bc_ParseVolumeSet(void)
                continue;
            }
 
-           /* The line just read in is a volume spec.  Create a new volume 
-            * spec record, then get the rest of the information regarding 
+           /* The line just read in is a volume spec.  Create a new volume
+            * spec record, then get the rest of the information regarding
             * the host, and stuff everything into place.
             */
            tve = (struct bc_volumeEntry *)
@@ -574,7 +573,7 @@ bc_ParseVolumeSet(void)
        }
     }                          /*forever loop */
 
-    /* If we hit an EOF in the middle of a volume set record, we bitch and 
+    /* If we hit an EOF in the middle of a volume set record, we bitch and
      * moan.
      */
     if (!readHeader)
@@ -594,19 +593,17 @@ bc_ParseVolumeSet(void)
 int
 bc_SaveVolumeSet(void)
 {
-    register afs_int32 code = 0;
-    register struct bc_volumeSet *tset;
-    register struct bc_volumeEntry *tentry;
+    afs_int32 code = 0;
+    struct bc_volumeSet *tset;
+    struct bc_volumeEntry *tentry;
 
     udbClientTextP ctPtr;
-    register FILE *stream;
-    struct bc_config *configPtr;
+    FILE *stream;
 
     extern struct bc_config *bc_globalConfig;
 
     ctPtr = &bc_globalConfig->configText[TB_VOLUMESET];
     stream = ctPtr->textStream;
-    configPtr = bc_globalConfig;
 
     /* must be locked */
     if (ctPtr->lockHandle == 0)