From: Dmitry V. Levin Date: Wed, 8 Mar 2023 20:00:00 +0000 (+0000) Subject: CODING_STYLE: note that 'unsigned' form is preferred over 'unsigned int' X-Git-Tag: v254-rc1~1090 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ba1ca5ef26edeeff369bb319c81640e151e16b1a;p=thirdparty%2Fsystemd.git CODING_STYLE: note that 'unsigned' form is preferred over 'unsigned int' --- diff --git a/docs/CODING_STYLE.md b/docs/CODING_STYLE.md index 9a355835368..1a044c023ac 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