Hi Stephen,

On Fri, 17 Mar 2017 09:15:28 -0700, Stephen Hemminger 
<step...@networkplumber.org> wrote:
> On Fri, 17 Mar 2017 16:51:15 +0100
> Olivier Matz <olivier.m...@6wind.com> wrote:
> 
> > +static int
> > +rte_log_lookup(const char *name)
> > +{
> > +   size_t i;
> > +
> > +   for (i = 0; i < rte_logs.dynamic_types_len; i++) {
> > +           if (rte_logs.dynamic_types[i].name == NULL)
> > +                   continue;
> > +           if (strcmp(name, rte_logs.dynamic_types[i].name) == 0)
> > +                   return i;
> > +   }
> > +
> > +   return -1;
> > +}  
> 
> Maybe use strcasecmp to allow for compatibility with old upper case names?

There was no upper case name before (just macros), so I don't think
this is needed.


I'll take care of your other remarks (cf other mails).

Thanks for the review
Olivier

Reply via email to