Don't cast the return from realloc()
[openafs.git] / src / vol / test / listVicepx.c
index 1044a30..de46cfb 100644 (file)
@@ -339,8 +339,8 @@ createDirEnt(dirEntry, fileName, vnode, unique)
 
     (dirEntry->numEntries)++;
     assert(dirEntry->vnodeName =
-          (VnodeName *) realloc(dirEntry->vnodeName,
-                                dirEntry->numEntries * sizeof(VnodeName)));
+          realloc(dirEntry->vnodeName,
+                  dirEntry->numEntries * sizeof(VnodeName)));
     dirEntry->vnodeName[dirEntry->numEntries - 1].vnode = vnode;
     dirEntry->vnodeName[dirEntry->numEntries - 1].vunique = unique;
     dirEntry->vnodeName[dirEntry->numEntries - 1].name = strdup(fileName);