summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2013-12-31 07:15:58 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2013-12-31 07:15:58 +0000
commit9a0aa5a6216aa85472b76a9eb23010141477c5cf (patch)
tree66c9c940126a01d214a8603e949aff2d4bb4b67a
parent75653a67c27786a99d35218c8ed1c9a67ae1041f (diff)
s/hphdr/phdr/ to fix compile with DEBUG
ok miod
-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) &&