ANSI
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 3 Mar 1991 05:38:00 +0000 (21:38 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sun, 3 Mar 1991 05:38:00 +0000 (21:38 -0800)
SCCS-vsn: usr.bin/xargs/xargs.c 5.6

usr/src/usr.bin/xargs/xargs.c

index 6aed030..b59b4c5 100644 (file)
@@ -15,7 +15,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)xargs.c    5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)xargs.c    5.6 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -176,7 +176,7 @@ run(prog, argv)
        char *prog, **argv;
 {
        union wait pstat;
        char *prog, **argv;
 {
        union wait pstat;
-       pid_t pid, waitpid();
+       pid_t pid;
        char **p;
 
        if (tflag) {
        char **p;
 
        if (tflag) {
@@ -197,7 +197,7 @@ run(prog, argv)
                   "xargs: %s: %s.\n", prog, strerror(errno));
                _exit(1);
        }
                   "xargs: %s: %s.\n", prog, strerror(errno));
                _exit(1);
        }
-       pid = waitpid(pid, &pstat, 0);
+       pid = waitpid(pid, (int *)&pstat, 0);
        if (pid == -1) {
                (void)fprintf(stderr,
                   "xargs: waitpid: %s.\n", strerror(errno));
        if (pid == -1) {
                (void)fprintf(stderr,
                   "xargs: waitpid: %s.\n", strerror(errno));