Source-Changes-HG archive

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

[src/trunk]: src/sys/compat/sunos32 SUNOS_M_NATIVE is now a macro that takes ...



details:   https://anonhg.NetBSD.org/src/rev/bb8a785ed49a
branches:  trunk
changeset: 518391:bb8a785ed49a
user:      briggs <briggs%NetBSD.org@localhost>
date:      Thu Nov 29 18:53:50 2001 +0000

description:
SUNOS_M_NATIVE is now a macro that takes an arg, not a constant.

diffstat:

 sys/compat/sunos32/sunos32_exec_aout.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r bfb348319ed4 -r bb8a785ed49a sys/compat/sunos32/sunos32_exec_aout.c
--- a/sys/compat/sunos32/sunos32_exec_aout.c    Thu Nov 29 18:39:08 2001 +0000
+++ b/sys/compat/sunos32/sunos32_exec_aout.c    Thu Nov 29 18:53:50 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sunos32_exec_aout.c,v 1.3 2001/11/13 02:09:20 lukem Exp $      */
+/*     $NetBSD: sunos32_exec_aout.c,v 1.4 2001/11/29 18:53:50 briggs Exp $     */
 
 /*
  * Copyright (c) 2001 Matthew R. Green
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos32_exec_aout.c,v 1.3 2001/11/13 02:09:20 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_exec_aout.c,v 1.4 2001/11/29 18:53:50 briggs Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_execfmt.h"
@@ -59,7 +59,7 @@
        struct sunos_exec *sunmag = epp->ep_hdr;
        int error = ENOEXEC;
 
-       if (sunmag->a_machtype != SUNOS_M_NATIVE)
+       if (!SUNOS_M_NATIVE(sunmag->a_machtype))
                return (ENOEXEC);
 
        switch (sunmag->a_magic) {



Home | Main Index | Thread Index | Old Index