]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
CODING_STYLE: document that we should avoid kernel types like u32
authorLennart Poettering <lennart@poettering.net>
Mon, 18 May 2015 16:47:22 +0000 (18:47 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 May 2015 16:47:52 +0000 (18:47 +0200)
CODING_STYLE

index fab928833b082d5ba0bf12a879d5501e5061f59c..91f09e80a87472f11c65a4f68fb51861a27a38bc 100644 (file)
 
 - 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