From: Uwe Hermann Date: Sat, 18 Mar 2017 19:01:54 +0000 (+0100) Subject: main.cpp: Minor consistency fixes found by clang-tidy. X-Git-Tag: pulseview-0.4.0~142 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=15a69e5484a26428d7540cf644300cd707a31104;p=pulseview.git main.cpp: Minor consistency fixes found by clang-tidy. --- 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; }