summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorKenji Aoyama <aoyama@cvs.openbsd.org>2019-04-10 22:02:04 +0000
committerKenji Aoyama <aoyama@cvs.openbsd.org>2019-04-10 22:02:04 +0000
commit1ecdc69dbc126263ae9470d066128c8400e2b901 (patch)
treef904b4f925d0323378dc802cc97fb74a638e3cce /sys/arch
parentf27d348a56f72ad4b8458532afa076f51fc53b19 (diff)
Add (uint32_t) cast on marks[] to avoid warning in gcc3.
"Yes, fix that" deraadt@
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/luna88k/stand/boot/boot.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/luna88k/stand/boot/boot.c b/sys/arch/luna88k/stand/boot/boot.c
index 6ecfdf3e166..a37efe4bba6 100644
--- a/sys/arch/luna88k/stand/boot/boot.c
+++ b/sys/arch/luna88k/stand/boot/boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.c,v 1.6 2019/04/10 04:17:36 deraadt Exp $ */
+/* $OpenBSD: boot.c,v 1.7 2019/04/10 22:02:03 aoyama Exp $ */
/* $NetBSD: boot.c,v 1.3 2013/03/05 15:34:53 tsutsui Exp $ */
/*
@@ -209,8 +209,9 @@ bootunix(char *line)
#endif
cpu_bootarg1 = BOOT_MAGIC;
- cpu_bootarg2 = marks[MARK_END];
- cpu_boot = (void (*)(uint32_t, uint32_t))marks[MARK_ENTRY];
+ cpu_bootarg2 = (uint32_t)marks[MARK_END];
+ cpu_boot = (void (*)(uint32_t, uint32_t))
+ (uint32_t)marks[MARK_ENTRY];
(*cpu_boot)(cpu_bootarg1, cpu_bootarg2);
}
printf("Booting kernel failed. (%s)\n", strerror(errno));