]> git.decadent.org.uk Git - odhcp6c.git/commit
use enum to specify order and indexes of iov struct.
authorKaspar Schleiser <kaspar@schleiser.de>
Wed, 12 Feb 2014 12:48:25 +0000 (13:48 +0100)
committerKaspar Schleiser <kaspar@schleiser.de>
Wed, 12 Feb 2014 13:06:38 +0000 (14:06 +0100)
commit7dcb066e88b3b201e29b308d896030573659acf4
treec615cfba869878f4fdf5d75be183ea44d3950b48
parent58f5bf8da1f5dca44abc31f454ce651a6927cc85
use enum to specify order and indexes of iov struct.

This helps to avoid brainfuck index calculation errors when adding
features.

On my build machine (arch linux x86_64), the stripped binary has exactly
the same size, so this patch should produce the same binary, but
increase code maintainability.
src/dhcpv6.c