1 |
– |
/* Copyright (c) 1996 Regents of the University of California */ |
2 |
– |
|
1 |
|
#ifndef lint |
2 |
< |
static char SCCSid[] = "$SunId$ LBL"; |
2 |
> |
static const char RCSid[] = "$Id$"; |
3 |
|
#endif |
6 |
– |
|
4 |
|
/* |
5 |
|
* Parallel network process handling routines |
6 |
|
*/ |
27 |
|
|
28 |
|
extern char *remsh; /* externally defined remote shell program */ |
29 |
|
|
33 |
– |
extern char *malloc(), *realloc(); |
30 |
|
extern char *getenv(); |
31 |
|
|
32 |
|
|
122 |
|
/* remove server from list */ |
123 |
|
psp->next = ps->next; |
124 |
|
pslist = pstart.next; |
125 |
< |
free((char *)ps); /* free associated memory */ |
125 |
> |
free((void *)ps); /* free associated memory */ |
126 |
|
} |
127 |
|
|
128 |
|
|
245 |
|
if (pp->elen == 0) |
246 |
|
pp->errs = (char *)malloc(nr+1); |
247 |
|
else |
248 |
< |
pp->errs = (char *)realloc(pp->errs, pp->elen+nr+1); |
248 |
> |
pp->errs = (char *)realloc((void *)pp->errs, pp->elen+nr+1); |
249 |
|
if (pp->errs == NULL) { |
250 |
|
perror("malloc failed"); |
251 |
|
exit(1); |
292 |
|
close(pp->efd); /* close error stream */ |
293 |
|
pindex[pp->efd] = NULL; |
294 |
|
FD_CLR(pp->efd, &errdesc); |
295 |
< |
free((char *)pp->errs); |
295 |
> |
free((void *)pp->errs); |
296 |
|
pp->com = NULL; /* clear settings */ |
297 |
|
pp->pid = -1; |
298 |
|
pp->efd = -1; |