# | Line 7 | Line 7 | static const char RCSid[] = "$Id$"; | |
---|---|---|
7 | ||
8 | ||
9 | #include <stdio.h> | |
10 | + | #include <stdlib.h> |
11 | ||
12 | ||
12 | – | char *malloc(), *realloc(), *emalloc(), *ecalloc(), *erealloc(); |
13 | ||
14 | – | |
14 | char * | |
15 | emalloc(n) /* return pointer to n uninitialized bytes */ | |
16 | unsigned n; | |
# | Line 65 | Line 64 | unsigned n; | |
64 | if (cp == NULL) | |
65 | cp = malloc(n); | |
66 | else | |
67 | < | cp = realloc(cp, n); |
67 | > | cp = realloc((void *)cp, n); |
68 | ||
69 | if (cp != NULL) | |
70 | return(cp); | |
# | Line 78 | Line 77 | unsigned n; | |
77 | efree(cp) /* free memory allocated by above */ | |
78 | char *cp; | |
79 | { | |
80 | < | free(cp); |
80 | > | free((void *)cp); |
81 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |