From 77e6ecc118935fd04529f67afc0c2f48f230b7c7 Mon Sep 17 00:00:00 2001 From: mcbride Date: Tue, 31 Dec 2013 07:15:57 +0000 Subject: [PATCH] s/hphdr/phdr/ to fix compile with DEBUG ok miod --- usr.sbin/mkuboot/copy_elf.c | 4 ++-- 1 file 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) && -- 2.20.1