mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
dir: remove unnecessary cast from malloc
Change-Id: I2b91c9ad2983ba08e5e1bc49c3790e018951be31 Reviewed-on: http://gerrit.openafs.org/5464 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementix.org>
This commit is contained in:
parent
552d59186b
commit
4d4cd3cd08
@ -121,9 +121,9 @@ DInit(int abuffers)
|
||||
Lock_Init(&afs_bufferLock);
|
||||
/* Align each element of Buffers on a doubleword boundary */
|
||||
tsize = (sizeof(struct buffer) + 7) & ~7;
|
||||
tp = (char *)malloc(abuffers * tsize);
|
||||
Buffers = (struct buffer **)malloc(abuffers * sizeof(struct buffer *));
|
||||
BufferData = (char *)malloc(abuffers * BUFFER_PAGE_SIZE);
|
||||
tp = malloc(abuffers * tsize);
|
||||
Buffers = malloc(abuffers * sizeof(struct buffer *));
|
||||
BufferData = malloc(abuffers * BUFFER_PAGE_SIZE);
|
||||
timecounter = 0;
|
||||
LastBuffer = (struct buffer *)tp;
|
||||
nbuffers = abuffers;
|
||||
|
Loading…
Reference in New Issue
Block a user