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-devel

Re: [Xen-devel] Casting 64-bit pointers to integers

To: Michael David Crawford <mdc@xxxxxxxxx>
Subject: Re: [Xen-devel] Casting 64-bit pointers to integers
From: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>
Date: Fri, 22 May 2009 12:01:43 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 22 May 2009 03:02:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A167622.2070105@xxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Mail-followup-to: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx>, Michael David Crawford <mdc@xxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx
References: <4A1670BB.90101@xxxxxxxxx> <20090522094141.GH10166@xxxxxxxxxxxxxxxxxxxxxxxxx> <4A167622.2070105@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
Michael David Crawford, le Fri 22 May 2009 02:53:38 -0700, a écrit :
> But what would be better is
> 
>   return (void*)(uintptr_t)socket_fd

Yes, that's the correct way.

Samuel

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

<Prev in Thread] Current Thread [Next in Thread>