SCCS-vsn: libexec/comsat/comsat.c 5.24
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)comsat.c 5.23 (Berkeley) %G%";
+static char sccsid[] = "@(#)comsat.c 5.24 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
/* verify proper invocation */
fromlen = sizeof(from);
/* verify proper invocation */
fromlen = sizeof(from);
- if (getsockname(0, &from, &fromlen) < 0) {
+ if (getsockname(0, (struct sockaddr *)&from, &fromlen) < 0) {
(void)fprintf(stderr,
"comsat: getsockname: %s.\n", strerror(errno));
exit(1);
(void)fprintf(stderr,
"comsat: getsockname: %s.\n", strerror(errno));
exit(1);
- while (wait3((union wait *)NULL, WNOHANG, (struct rusage *)NULL) > 0);
+ while (wait3((int *)NULL, WNOHANG, (struct rusage *)NULL) > 0);