diff --git a/lib/libutil/ttyaction.c b/lib/libutil/ttyaction.c index 1350844dbd18..cd78631126ca 100644 --- a/lib/libutil/ttyaction.c +++ b/lib/libutil/ttyaction.c @@ -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 #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 @@ -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); diff --git a/lib/libutil/ttymsg.c b/lib/libutil/ttymsg.c index 812924432d37..eabf76513e16 100644 --- a/lib/libutil/ttymsg.c +++ b/lib/libutil/ttymsg.c @@ -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);