lkml.org 
[lkml]   [2010]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] Repalce strncmp by memcmp
From
Date
On Mon, 2010-11-29 at 17:18 -0500, Steven Rostedt wrote:

> Um, do you realize that the kernel does not always use the same memcmp
> as gcc.
>

Note, I'm not against the change, because in 99% of the cases, memcmp()
can and will be faster, and we don't need to worry about these strange
cases.

What I'm against is a blind s/strncmp/memcmp/ of the kernel, because it
may have side effects that you may not have thought of.

-- Steve




\
 
 \ /
  Last update: 2010-11-29 23:29    [W:0.065 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site