Sure Stephen will make the changes. On Mon, Mar 6, 2017 at 8:46 AM, Stephen Hemminger < step...@networkplumber.org> wrote:
> On Sat, 4 Mar 2017 12:44:18 -0800 > Ravi Kerur <rke...@gmail.com> wrote: > > > +/* Bypass comment and empty lines */ > > +static inline int > > +is_bypass_line(char *buff) > > +{ > > + int i = 0; > > + > > + /* comment line */ > > + if (buff[0] == COMMENT_LEAD_CHAR) > > + return 1; > > + /* empty line */ > > + while (buff[i] != '\0') { > > + if (!isspace(buff[i])) > > + return 0; > > + i++; > > + } > > + return 1; > > +} > > This is not performance crtitical should not be inline. > The argument is never modified and therefore should be "const char *buff" >