1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-20 14:03:39 +03:00

CODING_STYLE: fix 'better' typo

This commit is contained in:
Sam James 2023-01-06 11:39:10 +00:00 committed by Daan De Meyer
parent 6e689dc6ee
commit 4e11b54b31

View File

@ -686,7 +686,7 @@ SPDX-License-Identifier: LGPL-2.1-or-later
- Do not use `basename()` or `dirname()`. The semantics in corner cases are - Do not use `basename()` or `dirname()`. The semantics in corner cases are
full of pitfalls, and the fact that there are two quite different versions of full of pitfalls, and the fact that there are two quite different versions of
`basename()` (one POSIX and one GNU, of which the latter is much more useful) `basename()` (one POSIX and one GNU, of which the latter is much more useful)
doesn't make it bette either. Use path_extract_filename() and doesn't make it better either. Use path_extract_filename() and
path_extract_directory() instead. path_extract_directory() instead.
- Never use `FILENAME_MAX`. Use `PATH_MAX` instead (for checking maximum size - Never use `FILENAME_MAX`. Use `PATH_MAX` instead (for checking maximum size