This is a series of misc changes to ss code which happened as fall-out when working on a unified output formatter (still unfinished).
Changes since v1: - Rebased onto current upstream, resolved conflicts in patch 4 generated by previously added SCTP socket support. Phil Sutter (18): ss: Mark fall through in arg parsing switch() ss: Drop empty lines in UDP output ss: Add missing tab when printing UNIX details ss: Use sockstat->type in all socket types ss: introduce proc_ctx_print() ss: Drop list traversal from unix_stats_print() ss: Eliminate unix_use_proc() ss: Turn generic_proc_open() wrappers into macros ss: Make tmr_name local to tcp_timer_print() ss: Make user_ent_hash_build_init local to user_ent_hash_build() ss: Make some variables function-local ss: Make slabstat_ids local to get_slabstat() ss: Get rid of useless goto in handle_follow_request() ss: Get rid of single-fielded struct snmpstat ss: Make unix_state_map local to unix_show() ss: Make sstate_name local to sock_state_print() ss: Make sstate_namel local to scan_state() ss: unix_show: No need to initialize members of calloc'ed structs misc/ss.c | 532 ++++++++++++++++++++++++++------------------------------------ 1 file changed, 224 insertions(+), 308 deletions(-) -- 2.10.0