Signed-off-by: Alejandro Colomar <colomar.6.4.3@xxxxxxxxx> --- man3/inet_net_pton.3 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man3/inet_net_pton.3 b/man3/inet_net_pton.3 index 00f94b9d4..d74a33d74 100644 --- a/man3/inet_net_pton.3 +++ b/man3/inet_net_pton.3 @@ -332,6 +332,7 @@ Raw address: c1a80180 /* Link with "\-lresolv" */ #include <arpa/inet.h> +#include <inttypes.h> #include <stdio.h> #include <stdlib.h> @@ -381,7 +382,7 @@ main(int argc, char *argv[]) may not have been touched by inet_net_ntop(), and so will still have any initial value that was specified in argv[2]. */ - printf("Raw address: %x\en", htonl(addr.s_addr)); + printf("Raw address: %"PRIx32"\en", htonl(addr.s_addr)); exit(EXIT_SUCCESS); } -- 2.28.0