Skip to content

Commit df88df9

Browse files
committed
apply patch from basho#64
1 parent ff29fdd commit df88df9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

c_src/driver_comm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ char *read_string(char **data) {
5555
void *ejs_alloc(ErlDrvSizeT size) {
5656
void *p = driver_alloc(size);
5757
if (p == NULL) {
58-
erl_exit(1, "erlang_js: Can't allocate %lu bytes of memory\n", size);
58+
erts_exit(1, "erlang_js: Can't allocate %lu bytes of memory\n", size);
5959
}
6060
return p;
6161
}

c_src/driver_comm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ char *read_string(char **data);
3030

3131
/* Wrapper around driver_alloc() that checks */
3232
/* for OOM. */
33-
void erl_exit(int n, char*, ...);
33+
void erts_exit(int n, char*, ...);
3434
void *ejs_alloc(ErlDrvSizeT size);
3535

3636
#endif

0 commit comments

Comments
 (0)