Re: [PATCH] linux/string.h: Introduce streq macro.

From: Steven Rostedt
Date: Tue Apr 26 2011 - 15:58:28 EST


On Tue, 2011-04-26 at 16:47 -0300, Thiago Farina wrote:

> > $ grep -rP --include=*.[ch] "\bstrcmp.*==\s*0\b" * | wc -l
> > 1143
> > $ grep -rP --include=*.[ch] "\!\s*strcmp\s*\(" * | wc -l
> > 1663
> >
> > Can you count how many misuses of strcmp have been
> > corrected?
>
> > Do you plan to convert the existing 2800?
>
> I'd work on this without any problem.

Nothing a perl script can't do either.

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/