This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: statx struct's stx_size pointer compatibility with uint64_t/size_t


Dominique Martinet <asmadeus@codewreck.org> wrote:

> A coworker ran into an incompatible-pointer-type compiler warning when
> trying to pass &statxbuf.stx_size to a function expecting a size_t,
> which boils down to this:

sizeof(size_t) != sizeof(__u64) on some arches, so you can't simply
interchange them.  But that's not what your example code is doing.

David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]