aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <colomar.6.4.3@gmail.com>2020-09-10 23:13:27 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-09-11 11:33:20 +0200
commit3996bc9c26878b6b7288b6737b887aa6b8533470 (patch)
tree047f92daf4a2c9002bd8cc973e1d4945a32c6ae1
parentc9e2544b17a2919940fbb992b13d8ed6d41df5de (diff)
downloadman-pages-3996bc9c26878b6b7288b6737b887aa6b8533470.tar.gz
timer_create.2: Cast to 'unsigned long' rather than 'long' when printing with "%lx"
Signed-off-by: Alejandro Colomar <colomar.6.4.3@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/timer_create.24
1 files changed, 2 insertions, 2 deletions
diff --git a/man2/timer_create.2 b/man2/timer_create.2
index e9a8b8503d..9c99077390 100644
--- a/man2/timer_create.2
+++ b/man2/timer_create.2
@@ -390,7 +390,7 @@ print_siginfo(siginfo_t *si)
tidp = si\->si_value.sival_ptr;
printf(" sival_ptr = %p; ", si\->si_value.sival_ptr);
- printf(" *sival_ptr = 0x%lx\en", (long) *tidp);
+ printf(" *sival_ptr = 0x%lx\en", (unsigned long) *tidp);
or = timer_getoverrun(*tidp);
if (or == \-1)
@@ -454,7 +454,7 @@ main(int argc, char *argv[])
if (timer_create(CLOCKID, &sev, &timerid) == \-1)
errExit("timer_create");
- printf("timer ID is 0x%lx\en", (long) timerid);
+ printf("timer ID is 0x%lx\en", (unsigned long) timerid);
/* Start the timer */