Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/rump/librump/rumpkern Add a function cast for enosys



details:   https://anonhg.NetBSD.org/src/rev/19c859b276df
branches:  trunk
changeset: 460285:19c859b276df
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 15 18:36:38 2019 +0000

description:
Add a function cast for enosys

diffstat:

 sys/rump/librump/rumpkern/rump.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 2b8f522fc603 -r 19c859b276df sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Tue Oct 15 18:35:29 2019 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Tue Oct 15 18:36:38 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.334 2019/05/17 03:34:26 ozaki-r Exp $       */
+/*     $NetBSD: rump.c,v 1.335 2019/10/15 18:36:38 christos Exp $      */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.334 2019/05/17 03:34:26 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.335 2019/10/15 18:36:38 christos Exp $");
 
 #include <sys/systm.h>
 #define ELFSIZE ARCH_ELFSIZE
@@ -807,7 +807,7 @@
        for (i = 0; i < ncall; i++) {
                callp = rump_sysent + calls[i].ros_num;
                KASSERT(bootlwp != NULL
-                   && callp->sy_call == (sy_call_t *)enosys);
+                   && callp->sy_call == (sy_call_t *)(void *)enosys);
                callp->sy_call = calls[i].ros_handler;
        }
 }



Home | Main Index | Thread Index | Old Index