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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]