summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/src/memory/prseg.c
diff options
context:
space:
mode:
Diffstat (limited to 'nsprpub/pr/src/memory/prseg.c')
-rw-r--r--nsprpub/pr/src/memory/prseg.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/nsprpub/pr/src/memory/prseg.c b/nsprpub/pr/src/memory/prseg.c
index ecad1d0ca..0b70f2d4e 100644
--- a/nsprpub/pr/src/memory/prseg.c
+++ b/nsprpub/pr/src/memory/prseg.c
@@ -18,7 +18,7 @@ void _PR_InitSegs(void)
void _PR_InitSegs(void)
{
- _PR_MD_INIT_SEGS();
+ _PR_MD_INIT_SEGS();
}
/*
@@ -31,20 +31,20 @@ PRSegment* _PR_NewSegment(PRUint32 size, void *vaddr)
{
PRSegment *seg;
- /* calloc the data structure for the segment */
+ /* calloc the data structure for the segment */
seg = PR_NEWZAP(PRSegment);
if (seg) {
- size = ((size + _pr_pageSize - 1) >> _pr_pageShift) << _pr_pageShift;
- /*
- ** Now, allocate the actual segment memory (or map under some OS)
- ** The OS specific code decides from where or how to allocate memory.
- */
- if (_PR_MD_ALLOC_SEGMENT(seg, size, vaddr) != PR_SUCCESS) {
- PR_DELETE(seg);
- return NULL;
- }
- }
+ size = ((size + _pr_pageSize - 1) >> _pr_pageShift) << _pr_pageShift;
+ /*
+ ** Now, allocate the actual segment memory (or map under some OS)
+ ** The OS specific code decides from where or how to allocate memory.
+ */
+ if (_PR_MD_ALLOC_SEGMENT(seg, size, vaddr) != PR_SUCCESS) {
+ PR_DELETE(seg);
+ return NULL;
+ }
+ }
return seg;
}
@@ -54,7 +54,7 @@ PRSegment* _PR_NewSegment(PRUint32 size, void *vaddr)
*/
void _PR_DestroySegment(PRSegment *seg)
{
- _PR_MD_FREE_SEGMENT(seg);
+ _PR_MD_FREE_SEGMENT(seg);
PR_DELETE(seg);
}