diff options
author | mortimer <mortimer@cvs.openbsd.org> | 2018-06-01 21:20:14 +0000 |
---|---|---|
committer | mortimer <mortimer@cvs.openbsd.org> | 2018-06-01 21:20:14 +0000 |
commit | d54aa86cfec35cf62cbc268fb7946719ebe2a8f9 (patch) | |
tree | f5a2ce901e43d025cdcfbd4bf0fb1ead17dda4bb /distrib | |
parent | 09db943587945d01db8c57581f074bd45f37cab7 (diff) |
Quiet clang warnings
ok deraadt@ millert@
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/common/elfrd_size.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 <sys/types.h> #include <sys/mman.h> @@ -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); } |