diff options
author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-12 15:50:00 +0200 |
---|---|---|
committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-09-12 15:50:00 +0200 |
commit | 565e23a7df9a99ac60c3dbc9692b33497423188b (patch) | |
tree | b4f88a5dcb4691d53f8a4a7d36bc109f28c77111 /doc | |
parent | fbb9050c648f23863bcac71bb608f31fec1ea352 (diff) | |
download | monitoring-plugins-565e23a.tar.gz |
Switch guidelines to use bool instead of int for booleans
Diffstat (limited to 'doc')
-rw-r--r-- | doc/developer-guidelines.sgml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/developer-guidelines.sgml b/doc/developer-guidelines.sgml index c900aeac..37c963ed 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. | |||
733 | <para>Variables should be declared at the beginning of code blocks and | 733 | <para>Variables should be declared at the beginning of code blocks and |
734 | not inline because of portability with older compilers.</para> | 734 | not inline because of portability with older compilers.</para> |
735 | 735 | ||
736 | <para>You should also avoid using the type "bool" and its values | 736 | <para>You should use the type "bool" and its values |
737 | "true" and "false". Instead use the "int" type and the plugins' own | 737 | "true" and "false" instead of the "int" type for booleans. |
738 | "TRUE"/"FALSE" values to keep the code uniformly.</para> | 738 | </para> |
739 | </section> | 739 | </section> |
740 | 740 | ||
741 | <section><title>Crediting sources</title> | 741 | <section><title>Crediting sources</title> |