projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79fb1d4
)
CODING_STYLE: note that 'unsigned' form is preferred over 'unsigned int'
author
Dmitry V. Levin
<ldv@strace.io>
Wed, 8 Mar 2023 20:00:00 +0000
(20:00 +0000)
committer
Luca Boccassi
<luca.boccassi@gmail.com>
Wed, 8 Mar 2023 21:17:23 +0000
(21:17 +0000)
docs/CODING_STYLE.md
patch
|
blob
|
history
diff --git
a/docs/CODING_STYLE.md
b/docs/CODING_STYLE.md
index 9a35583536862ea9c209c194922dcb4a6fcd34c5..1a044c023ac7973b5c8bde88bb24f6e9533bcbfa 100644
(file)
--- a/
docs/CODING_STYLE.md
+++ b/
docs/CODING_STYLE.md
@@
-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