Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/irix (void_cast_for_gcc_3_3_msg_goes_here *)



details:   https://anonhg.NetBSD.org/src/rev/185b6d4c6ead
branches:  trunk
changeset: 550084:185b6d4c6ead
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Jul 29 16:18:54 2003 +0000

description:
(void_cast_for_gcc_3_3_msg_goes_here *)

diffstat:

 sys/compat/irix/irix_swap.c   |  9 +++++----
 sys/compat/irix/irix_syssgi.c |  8 ++++----
 2 files changed, 9 insertions(+), 8 deletions(-)

diffs (72 lines):

diff -r 44ea141e206d -r 185b6d4c6ead sys/compat/irix/irix_swap.c
--- a/sys/compat/irix/irix_swap.c       Tue Jul 29 15:18:49 2003 +0000
+++ b/sys/compat/irix/irix_swap.c       Tue Jul 29 16:18:54 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: irix_swap.c,v 1.9 2003/01/22 12:58:23 rafal Exp $ */
+/*     $NetBSD: irix_swap.c,v 1.10 2003/07/29 16:18:54 mrg Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_swap.c,v 1.9 2003/01/22 12:58:23 rafal Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_swap.c,v 1.10 2003/07/29 16:18:54 mrg Exp $");
 
 #include <sys/types.h>
 #include <sys/signal.h> 
@@ -197,14 +197,15 @@
                SCARG(&cup, cmd) = SWAP_NSWAP;
                SCARG(&cup, arg) = NULL;
                SCARG(&cup, misc) = 0;
-               if ((error = sys_swapctl(l, &cup, (register_t *)&entries)) != 0)
+               if ((error = sys_swapctl(l, &cup,
+                                        (register_t *)(void *)&entries)) != 0)
                        return error;
 
                sep = (struct swapent *)malloc(
                    sizeof(struct swapent) * entries, M_TEMP, M_WAITOK);
                lockmgr(&swap_syscall_lock, LK_EXCLUSIVE, NULL);
                uvm_swap_stats(SWAP_STATS, sep, entries, 
-                   (register_t *)&dontcare);
+                   (register_t *)(void *)&dontcare);
                lockmgr(&swap_syscall_lock, LK_RELEASE, NULL);
 
                if (SCARG(uap, cmd) == IRIX_SC_GETFREESWAP)
diff -r 44ea141e206d -r 185b6d4c6ead sys/compat/irix/irix_syssgi.c
--- a/sys/compat/irix/irix_syssgi.c     Tue Jul 29 15:18:49 2003 +0000
+++ b/sys/compat/irix/irix_syssgi.c     Tue Jul 29 16:18:54 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: irix_syssgi.c,v 1.36 2003/02/28 02:12:55 cgd Exp $ */
+/*     $NetBSD: irix_syssgi.c,v 1.37 2003/07/29 16:18:54 mrg Exp $ */
 
 /*-
  * Copyright (c) 2001-2002 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_syssgi.c,v 1.36 2003/02/28 02:12:55 cgd Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_syssgi.c,v 1.37 2003/07/29 16:18:54 mrg Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ddb.h"
@@ -355,7 +355,7 @@
                 * If not, we will have to perform a relocation
                 */
                ret = uvm_map_findspace(&p->p_vmspace->vm_map, 
-                   pht->p_vaddr, pht->p_memsz, (vaddr_t *)&uaddr, 
+                   pht->p_vaddr, pht->p_memsz, (vaddr_t *)(void *)&uaddr,
                    NULL, 0, 0, UVM_FLAG_FIXED);
                if (ret == NULL)
                        need_relocation = 1;
@@ -377,7 +377,7 @@
 
                /* Find a free place for the sections */
                ret = uvm_map_findspace(&p->p_vmspace->vm_map, 
-                   IRIX_MAPELF_RELOCATE, size, (vaddr_t *)&uaddr, 
+                   IRIX_MAPELF_RELOCATE, size, (vaddr_t *)(void *)&uaddr,
                        NULL, 0, kph->p_align, 0);
 
                if (ret == NULL) {



Home | Main Index | Thread Index | Old Index