comparison src/core/ngx_alloc.c @ 4:c5f071d376e5

nginx-0.0.1-2002-08-22-19:24:03 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 22 Aug 2002 15:24:03 +0000
parents 4eff17414a43
children 669801705ab1
comparison
equal deleted inserted replaced
3:34a521b1a148 4:c5f071d376e5
10 { 10 {
11 void *p; 11 void *p;
12 12
13 p = malloc(size); 13 p = malloc(size);
14 if (p == NULL) 14 if (p == NULL)
15 ngx_log_error(NGX_LOG_EMERG, log, ngx_errno, 15 ngx_log_error(NGX_LOG_ALERT, log, ngx_errno,
16 "ngx_alloc: malloc %d bytes failed", size); 16 "ngx_alloc: malloc() %d bytes failed", size);
17 return p; 17 return p;
18 } 18 }
19 19
20 void *ngx_calloc(size_t size, ngx_log_t *log) 20 void *ngx_calloc(size_t size, ngx_log_t *log)
21 { 21 {