This input is only used to generate a parser in C. In C, void pointers (as are
the results of all the allocation functions) implicitly coerce to all other
pointer types.
size_t len = strlen(s1) + strlen(s2) + 1;
if (len <= BUFSIZ) sym = buf;
- else sym = (char*)malloc(len);
+ else sym = malloc(len);
strcpy(sym,s1);
strcat(sym,s2);
s = agstrdup (G,sym);
size_t len = strlen(s1) + strlen(s2) + 2; /* one more for ':' */
if (len <= BUFSIZ) sym = buf;
- else sym = (char*)malloc(len);
+ else sym = malloc(len);
sprintf (sym, "%s:%s", s1, s2);
s = agstrdup (G,sym);
agstrfree (G,s1);