[Libguestfs] [PATCH] daemon/Win32: Use xdr_u_int for PortableXDR compatibility.
Richard W.M. Jones
rjones at redhat.com
Thu Nov 26 09:32:57 UTC 2009
On Wed, Nov 25, 2009 at 06:56:25PM +0100, Jim Meyering wrote:
> Richard W.M. Jones wrote:
> > Subject: [PATCH 3/7] daemon/Win32: Use xdr_u_int for PortableXDR compatibility.
> >
> > PortableXDR didn't support xdr_uint32_t. xdr_u_int is the same type.
>
> It looks to me like xdr_uint32_t is the preferred name,
> because it is more descriptive.
> If so, can you do something like this instead?
>
> #define xdr_uint32_t xdr_u_int
>
> or use a typedef?
TBH xdr_u_int is the preferred type in XDR itself. xdr_uint32_t etc
is an invention of glibc. Nevertheless xdr_u_int is guaranteed always
to be an unsigned 32 bit integer.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://et.redhat.com/~rjones/libguestfs/
See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html
More information about the Libguestfs
mailing list