Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen Fix the syntax of the non _LP64 code fragme...



details:   https://anonhg.NetBSD.org/src/rev/3c6e690ff44f
branches:  trunk
changeset: 369812:3c6e690ff44f
user:      kre <kre%NetBSD.org@localhost>
date:      Fri Sep 02 05:09:49 2022 +0000

description:
Fix the syntax of the non _LP64 code fragment to match that in the
_LP64 fragment, so hopefully 32 bit ports with XEN (i386) will
build again.

diffstat:

 sys/arch/xen/xen/xenmem.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4aefdce63a63 -r 3c6e690ff44f sys/arch/xen/xen/xenmem.c
--- a/sys/arch/xen/xen/xenmem.c Fri Sep 02 04:34:58 2022 +0000
+++ b/sys/arch/xen/xen/xenmem.c Fri Sep 02 05:09:49 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xenmem.c,v 1.3 2022/09/01 16:28:08 bouyer Exp $ */
+/* $NetBSD: xenmem.c,v 1.4 2022/09/02 05:09:49 kre Exp $ */
 /*
  * Copyright (c) 2022 Manuel Bouyer.
  *
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xenmem.c,v 1.3 2022/09/01 16:28:08 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xenmem.c,v 1.4 2022/09/02 05:09:49 kre Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -62,7 +62,7 @@
            &result);
 #else
        error = extent_alloc(XENMEM_EX, size, align, 0,
-           waitok ? ((EX_WAITSPACE | EX_WAITOK) : EX_NOWAIT) | EX_MALLOCOK,
+           (waitok ? (EX_WAITSPACE | EX_WAITOK) : EX_NOWAIT) | EX_MALLOCOK,
            &result);
 #endif
        if (error) {



Home | Main Index | Thread Index | Old Index