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

Richard W.M. Jones rjones at redhat.com
Tue Nov 10 12:24:54 UTC 2009


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,

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list