chiark / gitweb /
fsckd: the error code is actually returned in 'fd'
[elogind.git] / CODING_STYLE
index 557401348789e0322ea45a1d699d56430da329eb..0340ff0fa31e0beb53248e5c28f957532114c304 100644 (file)
   is needed. Everytime you need that please immediately undefine
   basename(), and add a comment about it, so that no code ever ends up
   using the XDG version!
+
+- Use the bool type for booleans, not integers. One exception: in public
+  headers (i.e those in src/systemd/sd-*.h) use integers after all, as "bool"
+  is C99 and in our public APIs we try to stick to C89 (with a few extension).