summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2017-09-26 18:10:44 -0400
committerPeter Jones <pmjones@gmail.com>2018-03-12 16:21:43 -0400
commit54f8f1f9ed9563938e6063538351b0d96a8323e7 (patch)
treee5ec3e9030d7feaebd1d709128c6906855a49d85 /lib
parent9facc22ebec43dc1e57d997f1814df9c3f9400d1 (diff)
downloadefi-boot-shim-54f8f1f9ed9563938e6063538351b0d96a8323e7.tar.gz
efi-boot-shim-54f8f1f9ed9563938e6063538351b0d96a8323e7.zip
Get rid of all the places we cast to (CHAR16 *[])
Lindent gets confused by these, and they're hard to read anyway. Signed-off-by: Peter Jones <pjones@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/console.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/console.c b/lib/console.c
index b70749dd..b02ccb5c 100644
--- a/lib/console.c
+++ b/lib/console.c
@@ -280,13 +280,15 @@ console_select(CHAR16 *title[], CHAR16* selectors[], unsigned int start)
int
console_yes_no(CHAR16 *str_arr[])
{
- return console_select(str_arr, (CHAR16 *[]){ L"No", L"Yes", NULL }, 0);
+ CHAR16 *yes_no[] = { L"No", L"Yes", NULL };
+ return console_select(str_arr, yes_no, 0);
}
void
console_alertbox(CHAR16 **title)
{
- console_select(title, (CHAR16 *[]){ L"OK", 0 }, 0);
+ CHAR16 *okay[] = { L"OK", NULL };
+ console_select(title, okay, 0);
}
void