On Fri, Feb 21, 2020 at 05:37:15PM +0900, Kyotaro Horiguchi wrote:
> The two str[n]cmps are different only in matching length. I don't
> think we don't need to differentiate the two message there, so we
> could reduce the code as:
>
> | cmplen = strlen(excludeFiles[].name);
> | if (!prefix_patch)
> | cmplen++;
> | if (strncmp(d_name, excludeFilep.name, cmplen) == 0)
> | ...
Good idea. Let's do things as you suggest.
--
Michael