[Libguestfs] use STREQ(a,b), not strcmp(a,b) == 0

Jim Meyering jim at meyering.net
Tue Nov 10 12:39:29 UTC 2009


Richard W.M. Jones wrote:
> On Mon, Nov 09, 2009 at 10:44:25PM +0100, Jim Meyering wrote:
>> The series below makes changes like these mechanically,
>> one class of change per change-set:
>>
>>     strcmp(...) == 0     to STREQ(...)
>>     strcmp(...) != 0     to STRNEQ(...)
>>     strncmp(...) == 0    to STREQLEN(...)
>>     strncmp(...) != 0    to STRNEQLEN(...)
>>     strcasecmp(...) == 0 to STRCASEEQ(...)
>>     strcasecmp(...) != 0 to STRCASENEQ(...)
>>     strncasecmp(...) == 0 to STRCASEEQLEN(...)
>>     strncasecmp(...) != 0 to STRCASENEQLEN(...)
>
> I checked the patches visually and I couldn't see any mistakes.
>
> ACK.

Thanks.  Pushed




More information about the Libguestfs mailing list