소스 검색

renamed bad_malloc into badmalloc as well

master
Anselm R.Garbe 18 년 전
부모
커밋
df85dd743c
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      util.c

+ 3
- 3
util.c 파일 보기

@@ -13,7 +13,7 @@
/* static */

static void
bad_malloc(unsigned int size)
badmalloc(unsigned int size)
{
eprint("fatal: could not malloc() %u bytes\n", size);
}
@@ -25,7 +25,7 @@ emalloc(unsigned int size)
{
void *res = malloc(size);
if(!res)
bad_malloc(size);
badmalloc(size);
return res;
}

@@ -45,6 +45,6 @@ estrdup(const char *str)
{
void *res = strdup(str);
if(!res)
bad_malloc(strlen(str));
badmalloc(strlen(str));
return res;
}

불러오는 중...
취소
저장