mirror of
https://github.com/systemd/systemd
synced 2024-07-24 11:44:41 +00:00
CODING_STYLE: note that 'unsigned' form is preferred over 'unsigned int'
This commit is contained in:
parent
79fb1d4e7e
commit
ba1ca5ef26
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue