convert-from-bsd-to-posix-string-and-memory-functions-20010807
[openafs.git] / src / libadmin / vos / vsprocs.c
index d7e8612..1abd0f2 100644 (file)
@@ -1468,8 +1468,8 @@ int UV_ReleaseVolume(
   int releasecount = 0;
   struct volser_status volstatus;
 
-  bzero((char *)remembertime, sizeof(remembertime));
-  bzero((char *)&results, sizeof(results));
+  memset((char *)remembertime, 0, sizeof(remembertime));
+  memset((char *)&results, 0, sizeof(results));
 
   tst = ubik_Call(VL_SetLock, cellHandle->vos, 0, afromvol, RWVOL, VLOP_RELEASE);
   if ((tst) && (tst != VL_RERELEASE)) {
@@ -1675,7 +1675,7 @@ int UV_ReleaseVolume(
 
   strcpy(vname, entry.name);
   strcat(vname, ".readonly");
-  bzero(&cookie,sizeof(cookie));
+  memset(&cookie, 0, sizeof(cookie));
   strncpy(cookie.name, vname, VOLSER_OLDMAXVOLNAME);
   cookie.type   = ROVOL;
   cookie.parent = entry.volumeId[RWVOL];
@@ -1691,10 +1691,10 @@ int UV_ReleaseVolume(
       goto fail_UV_ReleaseVolume;
   } 
 
-  bzero (replicas,   (sizeof(struct replica)*nservers+1));
-  bzero (times,      (sizeof(struct release)*nservers+1));
-  bzero (toconns,    (sizeof(struct rx_connection *)*nservers+1));
-  bzero (results.manyResults_val, (sizeof(afs_int32)*nservers+1));
+  memset(replicas, 0, (sizeof(struct replica)*nservers+1));
+  memset(times, 0, (sizeof(struct release)*nservers+1));
+  memset(toconns, 0, (sizeof(struct rx_connection *)*nservers+1));
+  memset(results.manyResults_val, 0, (sizeof(afs_int32)*nservers+1));
 
   /* Create a transaction on the cloned volume */
   tst = AFSVolTransCreate(fromconn, cloneVolId, afrompart, ITBusy, &fromtid);
@@ -2249,7 +2249,7 @@ int UV_RestoreVolume(
     int index, same;
 
 
-    bzero(&cookie,sizeof(cookie));
+    memset(&cookie, 0, sizeof(cookie));
     islocked  = 0;
     success = 0;
     error = 0;
@@ -2922,7 +2922,7 @@ static afs_int32 ProcessEntries(
        }
        else if(tst && (tst == VL_NOENT)) { /*entry doesnot exist */
            /*set up a vldb entry for elem */
-           bzero(&entry, sizeof(entry));
+           memset(&entry, 0, sizeof(entry));
            strncpy(entry.name,elem.name,VOLSER_OLDMAXVOLNAME);
            if(elem.isValid[RWVOL]) { /*rw exists */
                entry.flags |= RW_EXISTS;
@@ -3512,7 +3512,7 @@ int UV_SyncServer(
 
     for(si = 0;si != -1; si=nsi) {
            /*initialize to hint the stub  to alloc space */
-           bzero(&arrayEntries, sizeof(arrayEntries)); 
+           memset(&arrayEntries, 0, sizeof(arrayEntries)); 
            if (!VLDB_ListAttributes(cellHandle, &attributes, &nentries,
                                     &arrayEntries, &tst)) {
                goto fail_UV_SyncServer;