From: Phil Sutter > Sent: 02 December 2016 10:40 > Signed-off-by: Phil Sutter <p...@nwl.cc> > --- > misc/ss.c | 89 > ++++++++++++++------------------------------------------------- > 1 file changed, 19 insertions(+), 70 deletions(-) > > diff --git a/misc/ss.c b/misc/ss.c > index ad38eb97b0055..71040a82ca6b1 100644 > --- a/misc/ss.c > +++ b/misc/ss.c > @@ -327,76 +327,25 @@ static FILE *generic_proc_open(const char *env, const > char *name) > > return fopen(p, "r"); > } > - > -static FILE *net_tcp_open(void) > -{ > - return generic_proc_open("PROC_NET_TCP", "net/tcp"); > -} ... > +#define net_tcp_open() generic_proc_open("PROC_NET_TCP", > "net/tcp") ...
Does that make any difference at all? The compiler should inline the static functions. David