summaryrefslogtreecommitdiff
path: root/Zend/zend_alloc.h
diff options
context:
space:
mode:
authorDavid Soria Parra <dsp@php.net>2009-01-25 13:41:50 +0000
committerDavid Soria Parra <dsp@php.net>2009-01-25 13:41:50 +0000
commit8defc0474affd6c71a22481740030dd259976d93 (patch)
treea46456cc4fa328df0d7b7e0f31c720a363327942 /Zend/zend_alloc.h
parenta44511f33ca3e91080167f5ec9e0133a504f6fa4 (diff)
downloadphp-git-8defc0474affd6c71a22481740030dd259976d93.tar.gz
Fix WS
Diffstat (limited to 'Zend/zend_alloc.h')
-rw-r--r--Zend/zend_alloc.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/Zend/zend_alloc.h b/Zend/zend_alloc.h
index 3a39a8bba4..a4d03d9749 100644
--- a/Zend/zend_alloc.h
+++ b/Zend/zend_alloc.h
@@ -78,29 +78,29 @@ ZEND_API size_t _zend_mem_block_size(void *ptr TSRMLS_DC ZEND_FILE_LINE_DC ZEND_
inline static void * __zend_malloc(size_t len)
{
- void *tmp = malloc(len);
- if (tmp) {
- return tmp;
- }
- fprintf(stderr, "Out of memory\n");
- exit(1);
+ void *tmp = malloc(len);
+ if (tmp) {
+ return tmp;
+ }
+ fprintf(stderr, "Out of memory\n");
+ exit(1);
}
inline static void * __zend_calloc(size_t nmemb, size_t len)
{
- void *tmp = _safe_malloc(nmemb, len, 0);
- memset(tmp, 0, len);
- return tmp;
+ void *tmp = _safe_malloc(nmemb, len, 0);
+ memset(tmp, 0, len);
+ return tmp;
}
inline static void * __zend_realloc(void *p, size_t len)
{
- p = realloc(p, len);
- if (p) {
- return p;
- }
- fprintf(stderr, "Out of memory\n");
- exit(1);
+ p = realloc(p, len);
+ if (p) {
+ return p;
+ }
+ fprintf(stderr, "Out of memory\n");
+ exit(1);
}