This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2 3/7] y2038: Provide conversion helpers for struct __timespec64
- From: Stepan Golosunov <stepan at golosunov dot pp dot ru>
- To: Lukasz Majewski <lukma at denx dot de>
- Cc: libc-alpha at sourceware dot org, Arnd Bergmann <arnd at arndb dot de>, Paul Eggert <eggert at cs dot ucla dot edu>, Joseph Myers <joseph at codesourcery dot com>
- Date: Thu, 2 May 2019 15:56:51 +0400
- Subject: Re: [PATCH v2 3/7] y2038: Provide conversion helpers for struct __timespec64
- References: <20190414220841.20243-1-lukma@denx.de> <20190429104613.16209-1-lukma@denx.de> <20190429104613.16209-4-lukma@denx.de>
29.04.2019 в 12:46:09 +0200 Lukasz Majewski написал:
> +/* Set to zero the struct __timespec64's tv_pad. */
> +static inline void
> +timespec64_clear_padding (const struct __timespec64 *tp)
> +{
> + ((struct __timespec64*)tp)->tv_pad = 0;
> +}
Modification of const values isn't going to work.