Re: CVS commit: src/external/bsd/nvi/dist/common

2018-06-16 Thread Kamil Rytarowski
On 16.06.2018 22:39, Christos Zoulas wrote:
> In article <20180616185452.afd29f...@cvs.netbsd.org>,
> Kamil Rytarowski  wrote:
>> -=-=-=-=-=-
>>
>> Module Name: src
>> Committed By:kamil
>> Date:Sat Jun 16 18:54:52 UTC 2018
>>
>> Modified Files:
>>  src/external/bsd/nvi/dist/common: log.c
>>
>> Log Message:
>> Do not cause Undefined Behavior in vi(1)
>>
>> Replace unportable manual calculation of alignof() that causes UB, with
>> a GCC extension __alignof__.
> 
> Isn't that offsetof() instead?
> 
> christos
> 

Fixed!



signature.asc
Description: OpenPGP digital signature


Re: CVS commit: src/external/bsd/nvi/dist/common

2018-06-16 Thread Christos Zoulas
In article <20180616185452.afd29f...@cvs.netbsd.org>,
Kamil Rytarowski  wrote:
>-=-=-=-=-=-
>
>Module Name:   src
>Committed By:  kamil
>Date:  Sat Jun 16 18:54:52 UTC 2018
>
>Modified Files:
>   src/external/bsd/nvi/dist/common: log.c
>
>Log Message:
>Do not cause Undefined Behavior in vi(1)
>
>Replace unportable manual calculation of alignof() that causes UB, with
>a GCC extension __alignof__.

Isn't that offsetof() instead?

christos