git: 86227aa9750c - stable/13 - sched.h: Use pid_t type for pid argument
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 14 Jan 2022 18:10:24 UTC
The branch stable/13 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=86227aa9750c16f69b67af8f2074ecc3cb032559
commit 86227aa9750c16f69b67af8f2074ecc3cb032559
Author: David CARLIER <devnexen@gmail.com>
AuthorDate: 2021-12-17 06:22:21 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-01-14 16:17:30 +0000
sched.h: Use pid_t type for pid argument
(cherry picked from commit 65dd321054cbbbcca192375b08843e860fc3b3c5)
---
include/sched.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/sched.h b/include/sched.h
index 460d3bfed154..02b0d5e51e94 100644
--- a/include/sched.h
+++ b/include/sched.h
@@ -44,7 +44,7 @@ __BEGIN_DECLS
#if __BSD_VISIBLE
#ifdef _WITH_CPU_SET_T
int sched_getaffinity(pid_t pid, size_t cpusetsz, cpuset_t *cpuset);
-int sched_setaffinity(int pid, size_t cpusetsz, const cpuset_t *cpuset);
+int sched_setaffinity(pid_t pid, size_t cpusetsz, const cpuset_t *cpuset);
int sched_getcpu(void);
#endif /* _WITH_CPU_SET_T */
#endif /* __BSD_VISIBLE */