Remove duplicated list clearing functionality
Remove duplicated list clearing functionality

The solution was to declare a common list type, declare
two instances of it and replace the list clearing functions
that worked on the two specific types with one that takes
a pointer to an instance of the common type.

cmusser/rdnssd,cmusser/radnsd,cmusser/rdnssd