diff options
author | Dmitry V. Levin <ldv@strace.io> | 2023-03-08 20:00:00 +0000 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-03-08 21:17:23 +0000 |
commit | ba1ca5ef26edeeff369bb319c81640e151e16b1a (patch) | |
tree | de0772c43854554ae197f77523b81b64c4ae3759 /docs | |
parent | 79fb1d4e7ef9e19ce0feda4625495991b2b9355e (diff) | |
download | systemd-ba1ca5ef26edeeff369bb319c81640e151e16b1a.tar.gz |
CODING_STYLE: note that 'unsigned' form is preferred over 'unsigned int'
Diffstat (limited to 'docs')
-rw-r--r-- | docs/CODING_STYLE.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/CODING_STYLE.md b/docs/CODING_STYLE.md index 9a35583536..1a044c023a 100644 --- 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 |