]> git.puffer.fish Git - mirror/frr.git/commit
zebra: fix struct msghdr initializers
authorTimo Teräs <timo.teras@iki.fi>
Tue, 29 Jul 2014 09:41:55 +0000 (09:41 +0000)
committerDavid Lamparter <equinox@opensourcerouting.org>
Sun, 17 Aug 2014 23:50:23 +0000 (01:50 +0200)
commitc299ed717eea4dbf7ca3581bcba05ff09f79276c
tree1c5bcdf75892ef9958edc8f38dd7f01922f0e57d
parent16ffb26fbbf8b3d1fee7a14eb401ecb02eed5058
zebra: fix struct msghdr initializers

struct msghdr field orders are not strictly specified in POSIX.
Improve portability by using designated initializer. This fixes
build against musl c-library where struct msghdr is POSIX
compliant (Linux kernel and glibc definitions are non-conforming).

As the result is also more readable, struct iovec initilizers
were also converted.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
zebra/rt_netlink.c