aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-05-18 18:47:22 +0200
committerLennart Poettering <lennart@poettering.net>2015-05-18 18:47:52 +0200
commit8cb1cc8dc339be9f96cd290882d775cccfc4d7e7 (patch)
tree522da6680286ce08566769749a5d0fef7ff8263f /CODING_STYLE
parentcore: Private*/Protect* options with RootDirectory (diff)
downloadsystemd-8cb1cc8dc339be9f96cd290882d775cccfc4d7e7.tar.gz
systemd-8cb1cc8dc339be9f96cd290882d775cccfc4d7e7.tar.bz2
systemd-8cb1cc8dc339be9f96cd290882d775cccfc4d7e7.zip
CODING_STYLE: document that we should avoid kernel types like u32
Diffstat (limited to 'CODING_STYLE')
-rw-r--r--CODING_STYLE4
1 files changed, 3 insertions, 1 deletions
diff --git a/CODING_STYLE b/CODING_STYLE
index fab928833..91f09e80a 100644
--- a/CODING_STYLE
+++ b/CODING_STYLE
@@ -147,7 +147,9 @@
- Do not use types like "short". They *never* make sense. Use ints,
longs, long longs, all in unsigned+signed fashion, and the fixed
- size types uint32_t and so on, as well as size_t, but nothing else.
+ size types uint32_t and so on, as well as size_t, but nothing
+ else. Do not use kernel types like u32 and so on, leave that to the
+ kernel.
- Public API calls (i.e. functions exported by our shared libraries)
must be marked "_public_" and need to be prefixed with "sd_". No