diff options
author | Toomas Soome <tsoome@me.com> | 2018-06-14 10:00:19 +0300 |
---|---|---|
committer | Robert Mustacchi <rm@joyent.com> | 2018-06-20 23:07:50 +0000 |
commit | 8fe0f5406dd0bce37c6d2a4b0f94746fe3bc1a06 (patch) | |
tree | 0112fe8f5ed4b7c248d96b08fb66d42bb0001495 | |
parent | 696c22af67f1944ec22b4086570891189a8e7201 (diff) | |
download | illumos-joyent-8fe0f5406dd0bce37c6d2a4b0f94746fe3bc1a06.tar.gz |
9602 loader.efi: Use bool for vargood, since it's a boolean.
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
Reviewed by: Andy Fiddaman <af@citrus-it.net>
Approved by: Robert Mustacchi <rm@joyent.com>
-rw-r--r-- | usr/src/boot/sys/boot/efi/loader/main.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/src/boot/sys/boot/efi/loader/main.c b/usr/src/boot/sys/boot/efi/loader/main.c index dbc915d7ec..7d83cb3677 100644 --- a/usr/src/boot/sys/boot/efi/loader/main.c +++ b/usr/src/boot/sys/boot/efi/loader/main.c @@ -292,7 +292,8 @@ main(int argc, CHAR16 *argv[]) { char var[128]; EFI_GUID *guid; - int i, j, vargood, howto; + int i, j, howto; + bool vargood; void *ptr; UINTN k; int has_kbd; @@ -400,14 +401,14 @@ main(int argc, CHAR16 *argv[]) } } } else { - vargood = 0; + vargood = false; for (j = 0; argv[i][j] != 0; j++) { if (j == sizeof(var)) { - vargood = 0; + vargood = false; break; } if (j > 0 && argv[i][j] == '=') - vargood = 1; + vargood = true; var[j] = (char)argv[i][j]; } if (vargood) { |