aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <colomar.6.4.3@gmail.com>2020-09-10 23:13:28 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2020-09-11 09:51:12 +0200
commitc9e2544b17a2919940fbb992b13d8ed6d41df5de (patch)
treeb4999b6b8de956dd9d98f895cd91412f657f9fe5
parent53de137678e07c2be18ee2d0249fd8dab02e0d47 (diff)
downloadman-pages-c9e2544b17a2919940fbb992b13d8ed6d41df5de.tar.gz
request_key.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/request_key.22
1 files changed, 1 insertions, 1 deletions
diff --git a/man2/request_key.2 b/man2/request_key.2
index e28c11ded9..c14bcb0008 100644
--- a/man2/request_key.2
+++ b/man2/request_key.2
@@ -537,7 +537,7 @@ main(int argc, char *argv[])
exit(EXIT_FAILURE);
}
- printf("Key ID is %lx\en", (long) key);
+ printf("Key ID is %lx\en", (unsigned long) key);
exit(EXIT_SUCCESS);
}