sargon / ddhcpd

A distributed DHCP Daemon
GNU General Public License v3.0
31 stars 12 forks source link

Eliminate superfluous custom list types #28

Closed TobleMiner closed 6 years ago

TobleMiner commented 6 years ago

All the custom list structs can be replaced by a list_head member in the corresponding list entry types.

DISCLAIMER: This patch is somewhat untested

BenBE commented 6 years ago

Would be nice if arguments passed to functions could still use aliased types (macro or typedef'd) so that it's more easy to see which kind of list to provide (still not entirely typesafe, but would somewhat help).

TobleMiner commented 6 years ago

Yeah that would make a lot of sense. I'll add some typedefs.