]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lib: Substitute some STREQLEN with STRPREFIX
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Jan 2021 16:06:50 +0000 (17:06 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 10 Feb 2021 10:51:59 +0000 (11:51 +0100)
commitd3b2d5158a2d4f47466155829db5fa83392bd4c9
treeb94e424152fc5815358067ec2ecb0a250c50e6dc
parent0ad938adc0f0c9578767624b5dd33f9aebcbf3cb
lib: Substitute some STREQLEN with STRPREFIX

There are few cases where STREQLEN() is called like this:

  STREQLEN(var, string, strlen(string))

which is the same as STRPREFIX(var, string). Use STRPREFIX()
because it is more obvious what the check is doing.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
src/libxl/xen_xl.c
src/util/vircgroupv2.c
tools/vsh.c