remove dependency on list_t
Merge pull request #1603 from WalterBright/refactor3

remove dependency on list_t