Use pid_t for pids. From Jeff Ito in PR 24854.

This commit is contained in:
wiz 2004-03-29 11:52:39 +00:00
parent f85aad9f0f
commit f343a3e8ab
2 changed files with 7 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ttyaction.c,v 1.15 2000/12/19 23:09:02 cgd Exp $ */
/* $NetBSD: ttyaction.c,v 1.16 2004/03/29 11:52:39 wiz Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@ -43,7 +43,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
__RCSID("$NetBSD: ttyaction.c,v 1.15 2000/12/19 23:09:02 cgd Exp $");
__RCSID("$NetBSD: ttyaction.c,v 1.16 2004/03/29 11:52:39 wiz Exp $");
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@ -81,7 +81,8 @@ ttyaction(const char *tty, const char *act, const char *user)
char env_tty[64];
char env_act[64];
char env_user[256];
int error, linenum, pid, status;
int error, linenum, status;
pid_t pid;
_DIAGASSERT(tty != NULL);
_DIAGASSERT(act != NULL);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ttymsg.c,v 1.18 2003/08/07 16:45:00 agc Exp $ */
/* $NetBSD: ttymsg.c,v 1.19 2004/03/29 11:52:39 wiz Exp $ */
/*
* Copyright (c) 1989, 1993
@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)ttymsg.c 8.2 (Berkeley) 11/16/93";
#else
__RCSID("$NetBSD: ttymsg.c,v 1.18 2003/08/07 16:45:00 agc Exp $");
__RCSID("$NetBSD: ttymsg.c,v 1.19 2004/03/29 11:52:39 wiz Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@ -135,7 +135,7 @@ ttymsg(struct iovec *iov, int iovcnt, const char *line, int tmout)
continue;
}
if (errno == EWOULDBLOCK) {
int cpid;
pid_t cpid;
if (forked) {
(void) close(fd);