[PATCH 05/24] offsetof.3: Use "%zu" rather than "%zd" when printing 'size_t' values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Alejandro Colomar <colomar.6.4.3@xxxxxxxxx>
---
 man3/offsetof.3 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/man3/offsetof.3 b/man3/offsetof.3
index 05fdd6dd8..f0c9975f4 100644
--- a/man3/offsetof.3
+++ b/man3/offsetof.3
@@ -93,10 +93,10 @@ main(void)
 
     /* Output is compiler dependent */
 
-    printf("offsets: i=%zd; c=%zd; d=%zd a=%zd\en",
+    printf("offsets: i=%zu; c=%zu; d=%zu a=%zu\en",
             offsetof(struct s, i), offsetof(struct s, c),
             offsetof(struct s, d), offsetof(struct s, a));
-    printf("sizeof(struct s)=%zd\en", sizeof(struct s));
+    printf("sizeof(struct s)=%zu\en", sizeof(struct s));
 
     exit(EXIT_SUCCESS);
 }
-- 
2.28.0




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux