]> git.puffer.fish Git - matthieu/frr.git/commit
lib: completely get rid of the MTYPE alias hack
authorDavid Lamparter <equinox@diac24.net>
Wed, 13 Nov 2019 23:21:10 +0000 (00:21 +0100)
committerDavid Lamparter <equinox@diac24.net>
Fri, 13 Dec 2019 05:22:34 +0000 (06:22 +0100)
commit33de8d1dd02dfb53f125c8213c896bc62f6c6d8e
tree649fe6c9e0d636d644e2341c3133554b9b746752
parent9fe602a17ca9de244eb4c97df613c9c7509cc3ad
lib: completely get rid of the MTYPE alias hack

Sometimes the easiest solution is hardest to find... the whole point of
all this "static const", aliasing, & co. was to make "MTYPE_FOO" usable
without adding the extra & as in "&MTYPE_FOO".  Making it a size-1 array
does that perfectly through the magic of ISO C array decay...

Signed-off-by: David Lamparter <equinox@diac24.net>
lib/frrcu.c
lib/memory.h