ANSI fixes
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 26 Feb 1991 08:25:15 +0000 (00:25 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Tue, 26 Feb 1991 08:25:15 +0000 (00:25 -0800)
SCCS-vsn: libexec/comsat/comsat.c 5.24

usr/src/libexec/comsat/comsat.c

index e24d4f7..b02b955 100644 (file)
@@ -12,7 +12,7 @@ char copyright[] =
 #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>
@@ -58,7 +58,7 @@ main(argc, argv)
 
        /* 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);
@@ -100,7 +100,7 @@ main(argc, argv)
 void
 reapchildren()
 {
 void
 reapchildren()
 {
-       while (wait3((union wait *)NULL, WNOHANG, (struct rusage *)NULL) > 0);
+       while (wait3((int *)NULL, WNOHANG, (struct rusage *)NULL) > 0);
 }
 
 void
 }
 
 void