diff options
author | Peter Wemm <peter@FreeBSD.org> | 1997-03-29 10:50:27 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1997-03-29 10:50:27 +0000 |
commit | d30ea4f53b072011b3d189f78467c9abe9abe0fd (patch) | |
tree | 83c8da143465f4881241877089869124e22b501b /sys/alpha | |
parent | 2b81b1431e28685e8b0161e2d8f047af5b6e80a7 (diff) | |
download | src-d30ea4f53b072011b3d189f78467c9abe9abe0fd.tar.gz src-d30ea4f53b072011b3d189f78467c9abe9abe0fd.zip |
Fix the warning when compiling the SYSINIT hook due to function types.
Notes
Notes:
svn path=/head/; revision=24370
Diffstat (limited to 'sys/alpha')
-rw-r--r-- | sys/alpha/linux/linux_sysvec.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sys/alpha/linux/linux_sysvec.c b/sys/alpha/linux/linux_sysvec.c index f61f32103207..f8620384b029 100644 --- a/sys/alpha/linux/linux_sysvec.c +++ b/sys/alpha/linux/linux_sysvec.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: linux_sysvec.c,v 1.11 1997/02/22 09:38:26 peter Exp $ */ /* XXX we use functions that might not exist. */ @@ -69,6 +69,7 @@ int linux_fixup __P((int **stack_base, struct image_params *iparams)); int elf_linux_fixup __P((int **stack_base, struct image_params *iparams)); void linux_prepsyscall __P((struct trapframe *tf, int *args, u_int *code, caddr_t *params)); void linux_sendsig __P((sig_t catcher, int sig, int mask, u_long code)); +static void linux_elf_init __P((void *dummy)); /* * Linux syscalls return negative errno's, we do positive and map them @@ -417,5 +418,15 @@ Elf32_Brandinfo linux_brand = { * XXX: this is WRONG, it needs to be SI_SUB_EXEC, but this is just at the * "proof of concept" stage and will be fixed shortly */ -SYSINIT(linuxelf, SI_SUB_VFS, SI_ORDER_ANY, elf_insert_brand_entry, &linux_brand); +static void +linux_elf_init(dummy) + void *dummy; +{ + if (elf_insert_brand_entry(&linux_brand) < 0) + printf("cannot insert Linux elf brand handler\n"); + else if (bootverbose) + printf("Linux-ELF exec handler installed\n"); +} + +SYSINIT(linuxelf, SI_SUB_VFS, SI_ORDER_ANY, linux_elf_init, NULL); #endif |