Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Feb 2023 19:07:48 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 0c21dc519c83 - stable/13 - libthr: Trim trailing whitespaces in pthread_attr_affinity.
Message-ID:  <202302061907.316J7moD076958@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=0c21dc519c838326c90e8b3bbdcc0ad0abf50614

commit 0c21dc519c838326c90e8b3bbdcc0ad0abf50614
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-01-29 12:38:04 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-02-06 19:06:31 +0000

    libthr: Trim trailing whitespaces in pthread_attr_affinity.
    
    MFC after:      1 week
    
    (cherry picked from commit f8660ea4b14d8ef8beefd4699d79098c738dddd8)
---
 lib/libthr/thread/thr_attr.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/libthr/thread/thr_attr.c b/lib/libthr/thread/thr_attr.c
index 5a06f793f4f8..a5957fa407a8 100644
--- a/lib/libthr/thread/thr_attr.c
+++ b/lib/libthr/thread/thr_attr.c
@@ -629,7 +629,7 @@ _pthread_attr_setaffinity_np(pthread_attr_t *pattr, size_t cpusetsize,
 			return (0);
 		}
 		size_t kern_size = _get_kern_cpuset_size();
-		/* Kernel rejects small set, we check it here too. */ 
+		/* Kernel rejects small set, we check it here too. */
 		if (cpusetsize < kern_size)
 			return (ERANGE);
 		if (cpusetsize > kern_size) {
@@ -663,7 +663,7 @@ _pthread_attr_getaffinity_np(const pthread_attr_t *pattr, size_t cpusetsize,
 	if (pattr == NULL || (attr = (*pattr)) == NULL)
 		ret = EINVAL;
 	else {
-		/* Kernel rejects small set, we check it here too. */ 
+		/* Kernel rejects small set, we check it here too. */
 		size_t kern_size = _get_kern_cpuset_size();
 		if (cpusetsize < kern_size)
 			return (ERANGE);
@@ -673,7 +673,7 @@ _pthread_attr_getaffinity_np(const pthread_attr_t *pattr, size_t cpusetsize,
 		else
 			memset(cpusetp, -1, kern_size);
 		if (cpusetsize > kern_size)
-			memset(((char *)cpusetp) + kern_size, 0, 
+			memset(((char *)cpusetp) + kern_size, 0,
 				cpusetsize - kern_size);
 	}
 	return (ret);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302061907.316J7moD076958>