diff options
author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2018-06-22 11:59:27 +0000 |
---|---|---|
committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2018-06-22 11:59:27 +0000 |
commit | 38639690a0e2799ebb1ae1b6c8b5189e25efd885 (patch) | |
tree | 974dd79755b78d15120c174406f9eb74c4c94cdd | |
parent | 20683a36c54c3daf586d31c2a49f0fb9f276ee03 (diff) | |
parent | 8fe0f5406dd0bce37c6d2a4b0f94746fe3bc1a06 (diff) | |
download | illumos-joyent-38639690a0e2799ebb1ae1b6c8b5189e25efd885.tar.gz |
[illumos-gate merge]
commit 8fe0f5406dd0bce37c6d2a4b0f94746fe3bc1a06
9602 loader.efi: Use bool for vargood, since it's a boolean.
-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) { |