From 3ec89d7c63af759d226a234bb81716dbf69da4f0 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Fri, 19 Sep 1997 17:20:44 +0000 Subject: Make newer gcc happy --- sys/arch/i386/stand/libsa/exec_i386.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sys/arch/i386') diff --git a/sys/arch/i386/stand/libsa/exec_i386.c b/sys/arch/i386/stand/libsa/exec_i386.c index e87da91c7d8..ccbac6da03f 100644 --- a/sys/arch/i386/stand/libsa/exec_i386.c +++ b/sys/arch/i386/stand/libsa/exec_i386.c @@ -1,4 +1,4 @@ -/* $OpenBSD: exec_i386.c,v 1.16 1997/09/17 17:56:10 mickey Exp $ */ +/* $OpenBSD: exec_i386.c,v 1.17 1997/09/19 17:20:43 niklas Exp $ */ /* * Copyright (c) 1997 Michael Shalayeff @@ -43,6 +43,9 @@ #define round_to_size(x) (((int)(x) + sizeof(int) - 1) & ~(sizeof(int) - 1)) +typedef void (*startfuncp)(int, int, int, int, int, int, int, int) + __attribute__ ((noreturn)); + void machdep_start(startaddr, howto, loadaddr, ssym, esym) char *startaddr, *loadaddr, *ssym, *esym; @@ -67,9 +70,8 @@ machdep_start(startaddr, howto, loadaddr, ssym, esym) printf("entry point at 0x%x\n", (int)startaddr); /* stack and the gung is ok at this point, so, no need for asm setup */ - (*(int __attribute__((noreturn))(*)(int,int,int,int,int,int,int,int)) - startaddr)(howto, bootdev, BOOT_APIVER, round_to_size(esym), - extmem, cnvmem, (int)&BIOS_vars, sizeof(BIOS_vars)); + (*(startfuncp)startaddr)(howto, bootdev, BOOT_APIVER, + round_to_size(esym), extmem, cnvmem, (int)&BIOS_vars, + sizeof (BIOS_vars)); /* not reached */ } - -- cgit v1.2.3