Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libutil Use pid_t for pids. From Jeff Ito in PR 24854.
details: https://anonhg.NetBSD.org/src/rev/b88456053619
branches: trunk
changeset: 565102:b88456053619
user: wiz <wiz%NetBSD.org@localhost>
date: Mon Mar 29 11:52:39 2004 +0000
description:
Use pid_t for pids. From Jeff Ito in PR 24854.
diffstat:
lib/libutil/ttyaction.c | 7 ++++---
lib/libutil/ttymsg.c | 6 +++---
2 files changed, 7 insertions(+), 6 deletions(-)
diffs (55 lines):
diff -r 7f8017af0082 -r b88456053619 lib/libutil/ttyaction.c
--- a/lib/libutil/ttyaction.c Mon Mar 29 11:02:47 2004 +0000
+++ b/lib/libutil/ttyaction.c Mon Mar 29 11:52:39 2004 +0000
@@ -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 @@
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 -r 7f8017af0082 -r b88456053619 lib/libutil/ttymsg.c
--- a/lib/libutil/ttymsg.c Mon Mar 29 11:02:47 2004 +0000
+++ b/lib/libutil/ttymsg.c Mon Mar 29 11:52:39 2004 +0000
@@ -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 @@
continue;
}
if (errno == EWOULDBLOCK) {
- int cpid;
+ pid_t cpid;
if (forked) {
(void) close(fd);
Home |
Main Index |
Thread Index |
Old Index