From d54aa86cfec35cf62cbc268fb7946719ebe2a8f9 Mon Sep 17 00:00:00 2001 From: mortimer Date: Fri, 1 Jun 2018 21:20:14 +0000 Subject: Quiet clang warnings ok deraadt@ millert@ --- distrib/common/elfrd_size.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'distrib') diff --git a/distrib/common/elfrd_size.c b/distrib/common/elfrd_size.c index 966b2bfc7b8..1590312677b 100644 --- a/distrib/common/elfrd_size.c +++ b/distrib/common/elfrd_size.c @@ -1,4 +1,4 @@ -/* $OpenBSD: elfrd_size.c,v 1.9 2018/04/26 12:42:50 guenther Exp $ */ +/* $OpenBSD: elfrd_size.c,v 1.10 2018/06/01 21:20:13 mortimer Exp $ */ #include #include @@ -114,9 +114,9 @@ ELFNAME(find_rd_root_image)(char *file, int fd, Elf_Phdr *ph, int segment, fprintf(stderr, "segment %d rd_root_size_off = 0x%llx\n", segment, rd_root_size_off); if ((ph->p_vaddr - ph->p_paddr) != 0) - fprintf(stderr, "root_off v %tx p %tx, diff %tx altered %llx\n", - ph->p_vaddr, ph->p_paddr, - (ph->p_vaddr - ph->p_paddr), + fprintf(stderr, "root_off v %zx p %zx, diff %zx altered %llx\n", + (size_t)ph->p_vaddr, (size_t)ph->p_paddr, + (size_t)(ph->p_vaddr - ph->p_paddr), rd_root_size_off - (ph->p_vaddr - ph->p_paddr)); fprintf(stderr, "rd_root_image_off = 0x%llx\n", rd_root_image_off); } -- cgit v1.2.3