]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
CODING_STYLE: note that 'unsigned' form is preferred over 'unsigned int'
authorDmitry V. Levin <ldv@strace.io>
Wed, 8 Mar 2023 20:00:00 +0000 (20:00 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 8 Mar 2023 21:17:23 +0000 (21:17 +0000)
docs/CODING_STYLE.md

index 9a35583536862ea9c209c194922dcb4a6fcd34c5..1a044c023ac7973b5c8bde88bb24f6e9533bcbfa 100644 (file)
@@ -547,7 +547,7 @@ SPDX-License-Identifier: LGPL-2.1-or-later
 ## Types
 
 - Think about the types you use. If a value cannot sensibly be negative, do not
-  use `int`, but use `unsigned`.
+  use `int`, but use `unsigned`.  We prefer `unsigned` form to `unsigned int`.
 
 - Use `char` only for actual characters. Use `uint8_t` or `int8_t` when you
   actually mean a byte-sized signed or unsigned integers. When referring to a