mirror of
https://github.com/systemd/systemd.git
synced 2025-05-27 21:05:55 +03: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…
x
Reference in New Issue
Block a user