summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mkuboot
diff options
context:
space:
mode:
authormcbride <mcbride@openbsd.org>2013-12-31 07:15:57 +0000
committermcbride <mcbride@openbsd.org>2013-12-31 07:15:57 +0000
commit77e6ecc118935fd04529f67afc0c2f48f230b7c7 (patch)
tree8a1aff41fbce719739b48940e37ffc20d9aae6bc /usr.sbin/mkuboot
parentDon't consider ld.so to be successfully built unless a test program (diff)
downloadwireguard-openbsd-77e6ecc118935fd04529f67afc0c2f48f230b7c7.tar.xz
wireguard-openbsd-77e6ecc118935fd04529f67afc0c2f48f230b7c7.zip
s/hphdr/phdr/ to fix compile with DEBUG
ok miod
Diffstat (limited to 'usr.sbin/mkuboot')
-rw-r--r--usr.sbin/mkuboot/copy_elf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mkuboot/copy_elf.c b/usr.sbin/mkuboot/copy_elf.c
index 5faf726c7a1..b6aff8bad1a 100644
--- a/usr.sbin/mkuboot/copy_elf.c
+++ b/usr.sbin/mkuboot/copy_elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: copy_elf.c,v 1.3 2013/11/11 07:56:02 patrick Exp $ */
+/* $OpenBSD: copy_elf.c,v 1.4 2013/12/31 07:15:57 mcbride Exp $ */
/*
* Copyright (c) 2013 Miodrag Vallat.
@@ -157,7 +157,7 @@ ELFNAME(copy_elf)(int ifd, const char *iname, int ofd, const char *oname,
if (elfoff2h(phdr.p_filesz) != 0) {
#ifdef DEBUG
fprintf(stderr, "copying %p from infile %p\n",
- elfoff2h(hphdr.p_filesz), elfoff2h(phdr.p_offset));
+ elfoff2h(phdr.p_filesz), elfoff2h(phdr.p_offset));
#endif
/* esym will be in the data portion of a region */
if (esym >= elfoff2h(phdr.p_vaddr) &&