From 15a69e5484a26428d7540cf644300cd707a31104 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 18 Mar 2017 20:01:54 +0100 Subject: [PATCH] main.cpp: Minor consistency fixes found by clang-tidy. --- main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cpp b/main.cpp index 51e61002..2119b81e 100644 --- a/main.cpp +++ b/main.cpp @@ -21,7 +21,7 @@ #include /* First, so we avoid a _POSIX_C_SOURCE warning. */ #endif -#include +#include #include #include @@ -85,7 +85,7 @@ int main(int argc, char *argv[]) #endif // Parse arguments - while (1) { + while (true) { static const struct option long_options[] = { {"help", no_argument, nullptr, 'h'}, {"version", no_argument, nullptr, 'V'}, @@ -195,7 +195,7 @@ int main(int argc, char *argv[]) srd_exit(); #endif - } while (0); + } while (false); return ret; } -- 2.30.2