WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] minios: add parentheses to mlock/mulock a

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] minios: add parentheses to mlock/mulock arguments.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 27 Oct 2010 19:15:34 -0700
Delivery-date: Wed, 27 Oct 2010 19:16:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1288091290 -3600
# Node ID 4f9922cff3ab488b4958fb67094eec3706a217ea
# Parent  36a317494429b97e0e43976f6b54e9dd4fa48d64
minios: add parentheses to mlock/mulock arguments.

Fixes warning/build error with non-trivial arguments.

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
 extras/mini-os/include/posix/sys/mman.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 36a317494429 -r 4f9922cff3ab extras/mini-os/include/posix/sys/mman.h
--- a/extras/mini-os/include/posix/sys/mman.h   Mon Oct 25 18:15:28 2010 +0100
+++ b/extras/mini-os/include/posix/sys/mman.h   Tue Oct 26 12:08:10 2010 +0100
@@ -16,7 +16,7 @@
 
 void *mmap(void *start, size_t length, int prot, int flags, int fd, off_t 
offset) asm("mmap64");
 int munmap(void *start, size_t length);
-#define munlock(addr, len) ((void)addr, (void)len, 0)
-#define mlock(addr, len) ((void)addr, (void)len, 0)
+#define munlock(addr, len) ((void)(addr), (void)(len), 0)
+#define mlock(addr, len) ((void)(addr), (void)(len), 0)
 
 #endif /* _POSIX_SYS_MMAN_H */

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] minios: add parentheses to mlock/mulock arguments., Xen patchbot-unstable <=