Initialize only protocols which are compiled in :)

This commit is contained in:
Martin Mares 1999-01-10 00:26:11 +00:00
parent b296730cb6
commit 18fff6a197

View file

@ -118,7 +118,12 @@ protos_build(void)
{
init_list(&protocol_list);
add_tail(&protocol_list, &proto_device.n);
#ifdef CONFIG_RIP
add_tail(&protocol_list, &proto_rip.n);
#endif
#ifdef CONFIG_STATIC
add_tail(&protocol_list, &proto_static.n);
#endif
}
void