]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
openvz: do not open-code STRSKIP
authorJán Tomko <jtomko@redhat.com>
Fri, 24 Jun 2016 12:35:08 +0000 (14:35 +0200)
committerJán Tomko <jtomko@redhat.com>
Fri, 24 Jun 2016 14:30:55 +0000 (16:30 +0200)
Remove one more use of STREQLEN with strlen as its argument.

src/openvz/openvz_conf.c

index ff321915b63a10a894f5f345d11b2602a01fa965..140335046b493db23b74c9ac3dd7a42b4429b1b0 100644 (file)
@@ -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;