Print this page
10143 smatch fix for ttymon
*** 23,37 ****
* 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 */
- #pragma ident "%Z%%M% %I% %E% SMI"
-
-
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <poll.h>
--- 23,37 ----
* 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.
+ */
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <poll.h>
*** 631,644 ****
* 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;
{
char ch;
if (pid == 0) { /* Child */
struct pmtab *tp;
--- 631,641 ----
* 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(int *p0, int *p1, int pid, int fd)
{
char ch;
if (pid == 0) { /* Child */
struct pmtab *tp;