Use true instead of 1 for a while loop
Converts the while loop to while (true) from while (1).
This is in the same spirt as using ES.47: Use nullptr
rather than 0 or NULL
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Res-nullptr
Tested: Built p10bmc before and after change, successful build
and runs on QEMU with no differences.
Signed-off-by: Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com>
Change-Id: Ia01a17775f4731536bd6a1d0a09a927d3fc1807d
diff --git a/src/utils.cpp b/src/utils.cpp
index 0eba710..908f34f 100644
--- a/src/utils.cpp
+++ b/src/utils.cpp
@@ -67,7 +67,7 @@
// this way we guarantee that queued job id is done.
// this is needed to make sure dependency list on units are
// properly handled.
- while (1)
+ while (true)
{
ec.clear();
conn->yield_method_call<>(yield, ec, sysdService, sysdObjPath,