From e35250c5387be617baf89ef78357aa3f300d252c Mon Sep 17 00:00:00 2001 From: Isaac Whitfield Date: Wed, 12 Oct 2016 17:45:12 +0100 Subject: [PATCH] Fix an issue with erl_exit usage --- c_src/driver_comm.c | 2 +- c_src/driver_comm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/c_src/driver_comm.c b/c_src/driver_comm.c index 3876b61..a35d12a 100644 --- a/c_src/driver_comm.c +++ b/c_src/driver_comm.c @@ -55,7 +55,7 @@ char *read_string(char **data) { void *ejs_alloc(ErlDrvSizeT size) { void *p = driver_alloc(size); if (p == NULL) { - erl_exit(1, "erlang_js: Can't allocate %lu bytes of memory\n", size); + erts_exit(1, "erlang_js: Can't allocate %lu bytes of memory\n", size); } return p; } diff --git a/c_src/driver_comm.h b/c_src/driver_comm.h index 9f04d16..f5456a5 100644 --- a/c_src/driver_comm.h +++ b/c_src/driver_comm.h @@ -30,7 +30,7 @@ char *read_string(char **data); /* Wrapper around driver_alloc() that checks */ /* for OOM. */ -void erl_exit(int n, char*, ...); +void erts_exit(int n, char*, ...); void *ejs_alloc(ErlDrvSizeT size); #endif