From be5f9a5a5d64ab9df8c677e2dbfa4b67ab74e9ee Mon Sep 17 00:00:00 2001 From: Li-Wen Hsu Date: Fri, 5 Jan 2018 08:29:32 +0000 Subject: [PATCH] Fix typo & build Approved by: kevlo --- usr.sbin/dumpcis/readcis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/dumpcis/readcis.c b/usr.sbin/dumpcis/readcis.c index 53dc0eca9f65..ce072d017cf4 100644 --- a/usr.sbin/dumpcis/readcis.c +++ b/usr.sbin/dumpcis/readcis.c @@ -336,9 +336,9 @@ ck_linktarget(int fd, off_t offs, int flag) { char blk[5]; - if (ioctl(fd, PIOCRWFLAG, &flags) < 0) + if (ioctl(fd, PIOCRWFLAG, &flag) < 0) err(1, "Setting flag to rad %s memory failed", - flags ? "attribute" : "common"); + flag ? "attribute" : "common"); if (lseek(fd, offs, SEEK_SET) < 0) err(1, "Unable to seek to memory offset %ju", (uintmax_t)offs);