88 |
|
if (b->nrm > n) { /* (re)allocate packet holder */ |
89 |
|
n = b->nrm; |
90 |
|
if (p == NULL) p = (PACKHEAD *)malloc(packsiz(n)); |
91 |
< |
else p = (PACKHEAD *)realloc((char *)p, packsiz(n)); |
91 |
> |
else p = (PACKHEAD *)realloc((void *)p, packsiz(n)); |
92 |
|
CHECK(p==NULL, SYSTEM, "out of memory in dispbeam"); |
93 |
|
} |
94 |
|
/* assign packet fields */ |
405 |
|
complist = NULL; |
406 |
|
complen = 0; |
407 |
|
} else if (i < complen-1) { |
408 |
< |
list2 = (PACKHEAD *)realloc((char *)complist, |
408 |
> |
list2 = (PACKHEAD *)realloc((void *)complist, |
409 |
|
(i+1)*sizeof(PACKHEAD)); |
410 |
|
if (list2 != NULL) |
411 |
|
complist = list2; |