summaryrefslogtreecommitdiffstats
path: root/txr.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-12-04 12:35:18 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-12-04 12:35:18 -0800
commitbdfe648ad88513857c3f9ef670ac0cae47bd606c (patch)
tree2b77d74b4827a8ea81259f1a339af86342c7daef /txr.c
parent208f8a44f899460c182da8644a7cd982d18aade9 (diff)
downloadtxr-bdfe648ad88513857c3f9ef670ac0cae47bd606c.tar.gz
txr-bdfe648ad88513857c3f9ef670ac0cae47bd606c.tar.bz2
txr-bdfe648ad88513857c3f9ef670ac0cae47bd606c.zip
Eliminate the void * disease. Generic pointers are of mem_t *
from now on, which is compatible with unsigned char *. No implicit conversion to or from this type, in C or C++.
Diffstat (limited to 'txr.c')
-rw-r--r--txr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/txr.c b/txr.c
index da1de70d..16faa19a 100644
--- a/txr.c
+++ b/txr.c
@@ -53,7 +53,7 @@ val spec_file_str;
* pool, which sets an OOM flag. Program can check flag
* and gracefully terminate instead of aborting like this.
*/
-static void *oom_realloc_handler(void *old, size_t size)
+static mem_t *oom_realloc_handler(mem_t *old, size_t size)
{
format(std_error, lit("~a: out of memory\n"), prog_string, nao);
put_line(std_error, lit("false"));