static afs_int32
AddToReturnList(struct returnList *list, dbadr a, afs_int32 *to_skipP)
{
- char *tmp;
+ dbadr *tmp;
afs_int32 size;
if (a == 0)
}
if (!tmp)
return BUDB_NOMEM;
- list->elements = (dbadr *) tmp;
+ list->elements = tmp;
list->allocSize = size;
}
if (*entriesp > 0) {
blkentriesp->nbulkentries_val =
- calloc(*entriesp, sizeof(*blkentriesp));
+ calloc(*entriesp, sizeof(struct nvldbentry));
if (blkentriesp->nbulkentries_val != NULL) {
for (i = 0; i < *entriesp; i++) {
OldVLDB_to_NewVLDB((struct vldbentry *)&arrayEntries.
else
thecell->srvsalloced = 4;
newlist = realloc(thecell->fsservers,
- thecell->srvsalloced * sizeof(struct afscp_server));
+ thecell->srvsalloced
+ * sizeof(struct afscp_server *));
if (newlist == NULL) {
return NULL;
}
*/
fd_set *IOMGR_AllocFDSet(void)
{
- struct IOMGR_fd_set *t;
+ fd_set *t;
if (iomgrFreeFDSets) {
- t = iomgrFreeFDSets;
+ t = (fd_set *) iomgrFreeFDSets;
iomgrFreeFDSets = iomgrFreeFDSets->next;
}
else {
t = malloc(sizeof(fd_set));
}
if (!t)
- return (fd_set*)0;
+ return NULL;
else {
- FD_ZERO((fd_set*)t);
- return (fd_set*)t;
+ FD_ZERO(t);
+ return t;
}
}
*/
calls = osi_Alloc(sizeof(struct rx_call *) * nConns);
- ready = osi_Alloc(sizeof(short *) * nConns);
+ ready = osi_Alloc(sizeof(short) * nConns);
mh = osi_Alloc(sizeof(struct multi_handle));
if (!calls || !ready || !mh)
osi_Panic("multi_Rx: no mem\n");
ViceLog(1, ("SAFS_GetStatistics64 Received\n"));
Statistics->ViceStatistics64_val =
- malloc(statsVersion*sizeof(afs_int64));
+ malloc(statsVersion*sizeof(afs_uint64));
Statistics->ViceStatistics64_len = statsVersion;
FS_LOCK;
AFSCallStats.GetStatistics++, AFSCallStats.TotalCalls++;