[monitoring-plugins] Switch guidelines to use bool instead of int for ...
RincewindsHat
git at monitoring-plugins.org
Thu Sep 14 09:40:11 CEST 2023
Module: monitoring-plugins
Branch: master
Commit: 565e23a7df9a99ac60c3dbc9692b33497423188b
Author: RincewindsHat <12514511+RincewindsHat at users.noreply.github.com>
Date: Tue Sep 12 15:50:00 2023 +0200
URL: https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=565e23a
Switch guidelines to use bool instead of int for booleans
---
doc/developer-guidelines.sgml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/developer-guidelines.sgml b/doc/developer-guidelines.sgml
index c900aea..37c963e 100644
--- a/doc/developer-guidelines.sgml
+++ b/doc/developer-guidelines.sgml
@@ -733,9 +733,9 @@ setup the tests. Run "make test" to run all the tests.
<para>Variables should be declared at the beginning of code blocks and
not inline because of portability with older compilers.</para>
- <para>You should also avoid using the type "bool" and its values
- "true" and "false". Instead use the "int" type and the plugins' own
- "TRUE"/"FALSE" values to keep the code uniformly.</para>
+ <para>You should use the type "bool" and its values
+ "true" and "false" instead of the "int" type for booleans.
+ </para>
</section>
<section><title>Crediting sources</title>
More information about the Commits
mailing list