git: 583dde3da0b6 - stable/13 - stand/efi: Break stlye rules a little for easier sharing
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Jan 2023 22:13:47 UTC
The branch stable/13 has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=583dde3da0b64e772e0f10c1485d55cf2375d311
commit 583dde3da0b64e772e0f10c1485d55cf2375d311
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-12-04 00:23:25 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-01-24 21:49:42 +0000
stand/efi: Break stlye rules a little for easier sharing
Break the style rules a little to allow easier sharing between efi and
kboot. This will allow the ifdefs to be fewer in number.
Sponsored by: Netflix
(cherry picked from commit aed1e5d332f9d26cdd8477bc336279217d53ecb8)
---
stand/efi/loader/bootinfo.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/stand/efi/loader/bootinfo.c b/stand/efi/loader/bootinfo.c
index 2187a09c1ebf..e05197189a46 100644
--- a/stand/efi/loader/bootinfo.c
+++ b/stand/efi/loader/bootinfo.c
@@ -71,9 +71,10 @@ bi_getboothowto(char *kargs)
{
const char *sw, *tmp;
char *opts;
- char *console;
- int howto, speed, port;
+ int speed, port;
char buf[50];
+ char *console;
+ int howto;
howto = boot_parse_cmdline(kargs);
howto |= boot_env_to_howto();