Changeset View
Changeset View
Standalone View
Standalone View
sys/net/route/route_ctl.c
Show First 20 Lines • Show All 1,540 Lines • ▼ Show 20 Lines | rib_print_family(int family) | ||||
case AF_INET: | case AF_INET: | ||||
return ("inet"); | return ("inet"); | ||||
case AF_INET6: | case AF_INET6: | ||||
return ("inet6"); | return ("inet6"); | ||||
case AF_LINK: | case AF_LINK: | ||||
return ("link"); | return ("link"); | ||||
} | } | ||||
return ("unknown"); | return ("unknown"); | ||||
} | } | ||||
glebius: Why not static? | |||||
Done Inline ActionsBoth tailq head and mutex can be initialized with standard initializer macros. glebius: Both tailq head and mutex can be initialized with standard initializer macros. | |||||
Why not static?