diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2009-11-19 10:21:05 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2009-11-19 10:21:05 -0800 |
commit | 6fc929b1384a97dd7922af731667dd2539819a49 (patch) | |
tree | 0d432d42c051affb68a7344b660056052c12da1f /lib.c | |
parent | 61abd16ff59debebdacfe0de5050070b5dde46ee (diff) | |
download | txr-6fc929b1384a97dd7922af731667dd2539819a49.tar.gz txr-6fc929b1384a97dd7922af731667dd2539819a49.tar.bz2 txr-6fc929b1384a97dd7922af731667dd2539819a49.zip |
Use unsigned char * as allocator return value.
Diffstat (limited to 'lib.c')
-rw-r--r-- | lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -518,7 +518,7 @@ static obj_t *equal_tramp(obj_t *env, obj_t *left, obj_t *right) return equal(left, right); } -char *chk_malloc(size_t size) +unsigned char *chk_malloc(size_t size) { char *ptr = malloc(size); if (size && ptr == 0) @@ -526,7 +526,7 @@ char *chk_malloc(size_t size) return ptr; } -char *chk_realloc(void *old, size_t size) +unsigned char *chk_realloc(void *old, size_t size) { char *newptr = realloc(old, size); if (size != 0 && newptr == 0) |