[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH] daemon/Win32: Use xdr_u_int for PortableXDR compatibility.



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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]