diff options
| author | justin <justin@NetBSD.org> | 2015-03-26 11:17:08 +0000 |
|---|---|---|
| committer | justin <justin@NetBSD.org> | 2015-03-26 11:17:08 +0000 |
| commit | c7724aabe96fdbecfde51b1da7d6dff98b918fbb (patch) | |
| tree | 16cc23556164febf9a9a2017785e6068f70c40e4 /lib | |
| parent | ff28d38048ef62485d4edc437d22fe0b40fe6c3e (diff) | |
Return type of compat wait functions should be pid_t not int.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libc/compat/sys/compat_wait4.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/compat/sys/compat_wait4.c b/lib/libc/compat/sys/compat_wait4.c index 9f1f38b02b8..1b3e8f17afb 100644 --- a/lib/libc/compat/sys/compat_wait4.c +++ b/lib/libc/compat/sys/compat_wait4.c @@ -1,4 +1,4 @@ -/* $NetBSD: compat_wait4.c,v 1.2 2009/01/11 02:46:27 christos Exp $ */ +/* $NetBSD: compat_wait4.c,v 1.3 2015/03/26 11:17:08 justin Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -31,7 +31,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: compat_wait4.c,v 1.2 2009/01/11 02:46:27 christos Exp $"); +__RCSID("$NetBSD: compat_wait4.c,v 1.3 2015/03/26 11:17:08 justin Exp $"); #endif /* LIBC_SCCS and not lint */ #define __LIBC12_SOURCE__ @@ -59,11 +59,11 @@ __weak_alias(wait3, _wait3) /* * libc12 compatible wait4 routine. */ -int +pid_t wait3(int *status, int options, struct rusage50 *ru50) { struct rusage ru; - int rv; + pid_t rv; if ((rv = __wait350(status, options, ru50 ? &ru : NULL)) == -1) return rv; @@ -72,11 +72,11 @@ wait3(int *status, int options, struct rusage50 *ru50) return rv; } -int +pid_t wait4(pid_t wpid, int *status, int options, struct rusage50 *ru50) { struct rusage ru; - int rv; + pid_t rv; if ((rv = __wait450(wpid, status, options, ru50 ? &ru : NULL)) == -1) return rv; |
