char *
xmalloc(unsigned int size)
{
- char *p = (char *)malloc(size);
+ char *p = malloc(size);
if (!p) {
perror(whoami);
exit(1);
gettimeofday(&tv, (void *)0);
gensym_n = (tv.tv_sec%10000)*100 + tv.tv_usec/10000;
}
- symbol = (char *)malloc(32 * sizeof(char));
+ symbol = malloc(32 * sizeof(char));
gensym_n++;
sprintf(symbol, "et%ld", (long int) gensym_n);
return(symbol);
fprintf(cfile, "\t\"%s\",\n", description);
}
if (error_codes == (char **)NULL) {
- error_codes = (char **)malloc(sizeof(char *));
+ error_codes = malloc(sizeof(char *));
*error_codes = (char *)NULL;
}
error_codes = (char **)realloc((char *)error_codes,
fprintf(cfile, "\t\"%s\",\n", description);
}
if (error_codes == (char **)NULL) {
- error_codes = (char **)malloc(sizeof(char *));
+ error_codes = malloc(sizeof(char *));
*error_codes = (char *)NULL;
}
error_codes = (char **)realloc((char *)error_codes,
x < (sizeof(yytname) / sizeof(char *)); x++)
if (yycheck[x + yyn] == x)
size += strlen(yytname[x]) + 15, count++;
- msg = (char *)malloc(size + 15);
+ msg = malloc(size + 15);
if (msg != 0) {
strcpy(msg, "parse error");
gettimeofday(&tv, NULL);
gensym_n = (tv.tv_sec % 10000) * 100 + tv.tv_usec / 10000;
}
- symbol = (char *)malloc(32 * sizeof(char));
+ symbol = malloc(32 * sizeof(char));
gensym_n++;
sprintf(symbol, "et%ld", gensym_n);
return (symbol);
fprintf(cfile, "\t\"%s\",\n", description);
}
if (error_codes == (char **)NULL) {
- error_codes = (char **)malloc(sizeof(char *));
+ error_codes = malloc(sizeof(char *));
*error_codes = (char *)NULL;
}
error_codes = realloc(error_codes, (current + 2) * sizeof(char *));
fprintf(cfile, "\t\"%s\",\n", description);
}
if (error_codes == (char **)NULL) {
- error_codes = (char **)malloc(sizeof(char *));
+ error_codes = malloc(sizeof(char *));
*error_codes = (char *)NULL;
}
error_codes = realloc(error_codes, (current + 2) * sizeof(char *));
yy_size_t size;
#endif
{
- return (void *) malloc( size );
+ return malloc( size );
}
#ifdef YY_USE_PROTOS
else
vnum_count++;
}
- file_names = (char **)malloc(name_count + sizeof(char *));
- file_vnums = (afs_int32 *) malloc(vnum_count + sizeof(afs_uint32));
+ file_names = malloc(name_count + sizeof(char *));
+ file_vnums = malloc(vnum_count + sizeof(afs_uint32));
if (name_count)
use_realpath = 1;
vnodepath = vnpx;
}
- if (!(linktarget = (char *)malloc(v->size + 1))) {
+ if (!(linktarget = malloc(v->size + 1))) {
if (!use_vnum && use != 2)
free(vnodepath);
return DSERR_MEM;