int * extras;
unsigned i;
- result = AO_malloc(sizeof(ln) + sizeof(int)*my_extra);
+ result = (ln *)AO_malloc(sizeof(ln) + sizeof(int)*my_extra);
if (result == 0)
{
fprintf(stderr, "Out of memory\n");
void * run_one_test(void * arg) {
ln * x = make_list(1, LIST_LENGTH);
int i;
- char *p = AO_malloc(LARGE_OBJ_SIZE);
+ char *p = (char *)AO_malloc(LARGE_OBJ_SIZE);
char *q;
char a = 'a' + ((int)((AO_PTRDIFF_T)arg) * 2) % ('z' - 'a' + 1);
char b = a + 1;
# endif
} else {
p[0] = p[LARGE_OBJ_SIZE/2] = p[LARGE_OBJ_SIZE-1] = a;
- q = AO_malloc(LARGE_OBJ_SIZE);
+ q = (char *)AO_malloc(LARGE_OBJ_SIZE);
if (q == 0)
{
fprintf(stderr, "Out of memory\n");
list_element * le;
if (n == 0) return;
add_elements(n-1);
- le = malloc(sizeof(list_element));
+ le = (list_element *)malloc(sizeof(list_element));
if (le == 0)
{
fprintf(stderr, "Out of memory\n");