git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace rand() implementation - fixes threading lockups
[tpg/acess2.git]
/
Kernel
/
heap.c
diff --git
a/Kernel/heap.c
b/Kernel/heap.c
index
b55687b
..
4c0232e
100644
(file)
--- a/
Kernel/heap.c
+++ b/
Kernel/heap.c
@@
-441,18
+441,18
@@
void *Heap_Reallocate(const char *File, int Line, void *__ptr, size_t __size)
}
/**
}
/**
- * \fn void *Heap_AllocateZero(const char *File, int Line, size_t
size
)
+ * \fn void *Heap_AllocateZero(const char *File, int Line, size_t
Bytes
)
* \brief Allocate and Zero a buffer in memory
* \param File Allocating file
* \param Line Line of allocation
* \brief Allocate and Zero a buffer in memory
* \param File Allocating file
* \param Line Line of allocation
- * \param
size
Size of the allocation
+ * \param
Bytes
Size of the allocation
*/
*/
-void *Heap_AllocateZero(const char *File, int Line, size_t
size
)
+void *Heap_AllocateZero(const char *File, int Line, size_t
Bytes
)
{
{
- void *ret = Heap_Allocate(File, Line,
size
);
+ void *ret = Heap_Allocate(File, Line,
Bytes
);
if(ret == NULL) return NULL;
if(ret == NULL) return NULL;
- memset( ret, 0,
size
);
+ memset( ret, 0,
Bytes
);
return ret;
}
return ret;
}
UCC
git Repository :: git.ucc.asn.au