[libvirt] [PATCH 3/3] openvz: do not open-code STRSKIP

Ján Tomko jtomko at redhat.com
Fri Jun 24 13:00:51 UTC 2016


Remove one more use of STREQLEN with strlen as its argument.
---
 src/openvz/openvz_conf.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/openvz/openvz_conf.c b/src/openvz/openvz_conf.c
index ff32191..1403350 100644
--- a/src/openvz/openvz_conf.c
+++ b/src/openvz/openvz_conf.c
@@ -737,10 +737,9 @@ openvzReadConfigParam(const char *conf_file, const char *param, char **value)
             break;
         }
 
-        if (! STREQLEN(line, param, strlen(param)))
+        if (!(sf = STRSKIP(line, param)))
             continue;
 
-        sf = line + strlen(param);
         if (*sf++ != '=')
             continue;
 
-- 
2.7.3




More information about the libvir-list mailing list