aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2023-08-31 01:10:54 +0200
committerAlejandro Colomar <alx@kernel.org>2023-08-31 01:44:03 +0200
commite19a57ae9f3ba6b96b3d3ec4a6463f162aa03210 (patch)
treeab456e9a96ce611a24fb292175376fb45646dd2c
parentdf2441df2b39136f9777adbdc4ade121b0e471d4 (diff)
downloadman-pages-e19a57ae9f3ba6b96b3d3ec4a6463f162aa03210.tar.gz
pthread_getattr_default_np.3: EXAMPLES: Fix conversion specifier for size_t
Reported-by: cppcheck(1) (`make lint-c-cppcheck`) Signed-off-by: Alejandro Colomar <alx@kernel.org>
-rw-r--r--man3/pthread_getattr_default_np.34
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/pthread_getattr_default_np.3 b/man3/pthread_getattr_default_np.3
index c51033e6a7..cb5fb6a1e9 100644
--- a/man3/pthread_getattr_default_np.3
+++ b/man3/pthread_getattr_default_np.3
@@ -121,12 +121,12 @@ display_pthread_attr(pthread_attr_t *attr)
s = pthread_attr_getstacksize(attr, &stacksize);
if (s != 0)
errc(EXIT_FAILURE, s, "pthread_attr_getstacksize");
- printf("Stack size: %zd\en", stacksize);
+ printf("Stack size: %zu\en", stacksize);
\&
s = pthread_attr_getguardsize(attr, &guardsize);
if (s != 0)
errc(EXIT_FAILURE, s, "pthread_attr_getguardsize");
- printf("Guard size: %zd\en", guardsize);
+ printf("Guard size: %zu\en", guardsize);
\&
s = pthread_attr_getschedpolicy(attr, &policy);
if (s != 0)