if (in_exit) exit(exitcode);
in_exit = 1;
if (env != NULL) free(env), env = NULL;
- if (args != NULL) free((char*)args), args = NULL;
+ if (args != NULL) free(args), args = NULL;
FREE(inbuf);
FREE(outbuf);
FREE(d_buf);
/* Allocate the new argv array, with an extra element just in case
* the original arg list did not end with a NULL.
*/
- nargv = (char **) xcalloc (*argcp + 1, sizeof (char *));
+ nargv = xcalloc (*argcp + 1, sizeof (char *));
oargv = *argvp;
*argvp = nargv;
int context, status;
char buf[255], *p;
- vms_argv = (char**)xmalloc((max_files+1)*sizeof(char*));
+ vms_argv = xmalloc((max_files+1)*sizeof(char*));
vms_argv[new_argc++] = **argv;
vms_argv[new_argc++] = argv[0][i];
}
} else {
- p = (char*)xmalloc(strlen(buf)+1);
+ p = xmalloc(strlen(buf)+1);
strcpy(p, buf);
if (new_argc < max_files) {
vms_argv[new_argc++] = p;
}
while (find_file_c(argv[0][i], buf,
sizeof(buf), &context) & 1 == 1) {
- p = (char*)xmalloc(strlen(buf)+1);
+ p = xmalloc(strlen(buf)+1);
strcpy(p, buf);
if (new_argc < max_files) {
vms_argv[new_argc++] = p;