1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2025-08-28 22:36:00 -04:00

Rename vars

This commit is contained in:
Alex Kotov 2022-01-15 16:17:06 +05:00
parent d1ba80702c
commit 3d7b6b5898
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
4 changed files with 8 additions and 8 deletions

View file

@ -12,7 +12,7 @@ extern const struct KernAux_Multiboot2_Header multiboot2_header;
static void panic(const char *str);
void main(
const uint32_t multiboot2_magic,
const uint32_t multiboot2_info_magic,
const struct KernAux_Multiboot2_Info *const multiboot2_info
) {
if (!KernAux_Multiboot2_Header_is_valid(&multiboot2_header)) {
@ -23,10 +23,10 @@ void main(
KernAux_Multiboot2_Header_print(&multiboot2_header, kernaux_console_printf);
if (multiboot2_magic != KERNAUX_MULTIBOOT2_INFO_MAGIC) {
panic("Multiboot 2 magic number is invalid");
if (multiboot2_info_magic != KERNAUX_MULTIBOOT2_INFO_MAGIC) {
panic("Multiboot 2 info magic number is invalid");
} else {
kernaux_console_printf("Multiboot 2 magic number is valid\n");
kernaux_console_printf("Multiboot 2 info magic number is valid\n");
}
if (!KernAux_Multiboot2_Info_is_valid(multiboot2_info)) {

View file

@ -12,7 +12,7 @@ extern const struct KernAux_Multiboot2_Header multiboot2_header;
static void panic(const char *str);
void main(
const uint32_t multiboot2_magic,
const uint32_t multiboot2_info_magic,
const struct KernAux_Multiboot2_Info *const multiboot2_info
) {
if (!KernAux_Multiboot2_Header_is_valid(&multiboot2_header)) {
@ -23,10 +23,10 @@ void main(
KernAux_Multiboot2_Header_print(&multiboot2_header, kernaux_console_printf);
if (multiboot2_magic != KERNAUX_MULTIBOOT2_INFO_MAGIC) {
panic("Multiboot 2 magic number is invalid");
if (multiboot2_info_magic != KERNAUX_MULTIBOOT2_INFO_MAGIC) {
panic("Multiboot 2 info magic number is invalid");
} else {
kernaux_console_printf("Multiboot 2 magic number is valid\n");
kernaux_console_printf("Multiboot 2 info magic number is valid\n");
}
if (!KernAux_Multiboot2_Info_is_valid(multiboot2_info)) {