Print this page
10143 smatch fix for ttymon

@@ -23,15 +23,15 @@
  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
 /*        All Rights Reserved   */
+/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
 
 
-#pragma ident   "%Z%%M% %I%     %E% SMI"
-
-
 #include <stdlib.h>
 #include <stdio.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <poll.h>

@@ -631,14 +631,11 @@
  * writes to the pipes by the parent and child process to ensure
  * the parent and child processes have closed all the file descriptors
  * that are not needed any more.
  */
 static void
-pcsync_close(p0, p1, pid, fd)
-int     *p0;
-int     *p1;
-int     pid;
+pcsync_close(int *p0, int *p1, int pid, int fd)
 {
         char    ch;
 
         if (pid == 0) {                         /* Child */
                 struct  pmtab   *tp;