summary refs log tree commit diff
path: root/lisc/util.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-08 14:05:13 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-10-08 14:05:13 -0400
commitbf3e6753f3ee28c33aa16dd9b0a65636e612eac1 (patch)
tree69bdcdc95ba510da1bfe8f2ac62188e95b2d72dc /lisc/util.c
parent2205930c370db90941dc6d49ed659cbfc24c786b (diff)
downloadroux-bf3e6753f3ee28c33aa16dd9b0a65636e612eac1.tar.gz
rename ealloc to emalloc
Diffstat (limited to 'lisc/util.c')
-rw-r--r--lisc/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisc/util.c b/lisc/util.c
index 9eeced7..b73734c 100644
--- a/lisc/util.c
+++ b/lisc/util.c
@@ -36,13 +36,13 @@ diag(char *s)
 }
 
 void *
-ealloc(size_t n)
+emalloc(size_t n)
 {
 	void *p;
 
 	p = calloc(1, n);
 	if (!p)
-		diag("ealloc: out of memory");
+		diag("emalloc: out of memory");
 	return p;
 }
 
@@ -54,12 +54,12 @@ alloc(size_t n)
 	if (n == 0)
 		return 0;
 	if (nptr >= NPtr) {
-		pp = ealloc(NPtr * sizeof(void *));
+		pp = emalloc(NPtr * sizeof(void *));
 		pp[0] = pool;
 		pool = pp;
 		nptr = 1;
 	}
-	return pool[nptr++] = ealloc(n);
+	return pool[nptr++] = emalloc(n);
 }
 
 void