]> git.ipfire.org Git - thirdparty/bird.git/commit - lib/lists.h
Birdlib: Modify lists to avoid problems with pointer aliasing rules
authorJan Moskyto Matejka <mq@ucw.cz>
Wed, 23 Mar 2016 00:45:37 +0000 (01:45 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Wed, 23 Mar 2016 01:21:42 +0000 (02:21 +0100)
commit54bb032d21d25a2221877e15325e79add10278ec
treecf5fbb8388001ef2a9af3a55548f612264ef64ea
parent665b8e5283df4f64eb44d8fb434489be1474b5d4
Birdlib: Modify lists to avoid problems with pointer aliasing rules

The old linked list implementation used some wild typecasts and required
GCC option -fno-strict-aliasing to work properly. This patch fixes that.
However, we still keep the option due to other potential problems.

(Commited by Ondrej Santiago Zajicek)
lib/lists.c
lib/lists.h