]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
CODING_STYLE: two minor additions
authorLennart Poettering <lennart@poettering.net>
Thu, 29 Mar 2018 14:28:00 +0000 (16:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 3 Apr 2018 13:22:26 +0000 (15:22 +0200)
doc/CODING_STYLE

index 8ee7628051e5a1504d314da718f20d33a81ec701..7025d242fa4c905e0041b7998109c51b8f907f02 100644 (file)
@@ -69,7 +69,7 @@
   values. Do not mix usec and msec, and usec and whatnot.
 
 - Make use of _cleanup_free_ and friends. It makes your code much
-  nicer to read!
+  nicer to read (and shorter)!
 
 - Be exceptionally careful when formatting and parsing floating point
   numbers. Their syntax is locale dependent (i.e. "5.000" in en_US is
 
 - Do not write "foo ()", write "foo()".
 
-- Please use streq() and strneq() instead of strcmp(), strncmp() where applicable.
+- Please use streq() and strneq() instead of strcmp(), strncmp() where
+  applicable (i.e. wherever you just care about equality/inequality, not about
+  the sorting order).
 
 - Please do not allocate variables on the stack in the middle of code,
   even if C99 allows it. Wrong: