diff options
author | Jan Janssen <medhefgo@web.de> | 2022-06-24 10:45:52 +0200 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2022-06-27 12:16:27 +0200 |
commit | 6b852d22b621ef37ef67a3b24ca1f075e0b78698 (patch) | |
tree | 7f4b759f1cd91d45e36f9e9329bef006b5483e5a /src/fundamental/bootspec-fundamental.h | |
parent | aec2f54b30f58394f8f67d7e1c56ee3d7ca91eed (diff) | |
download | systemd-6b852d22b621ef37ef67a3b24ca1f075e0b78698.tar.gz |
fundamental: Remove types-fundamental.h
This removes the fundamental typedefs in favor of just using standard C
types. These are all used internally anyway and also do not do anything
special to warrant any redefinition to EFI types.
Even for BOOLEAN we can safely use stdbool. The defition from the EFI
specification is fully compatible, including making any other values
than 0/1 as undefined.
The exception is sd_char as those need to be char16_t. The typedef is
moved to string-util-fundamental.h instead.
Diffstat (limited to 'src/fundamental/bootspec-fundamental.h')
-rw-r--r-- | src/fundamental/bootspec-fundamental.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fundamental/bootspec-fundamental.h b/src/fundamental/bootspec-fundamental.h index ff88f8bc3f..19b489ccf5 100644 --- a/src/fundamental/bootspec-fundamental.h +++ b/src/fundamental/bootspec-fundamental.h @@ -1,9 +1,9 @@ /* SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once -#include "types-fundamental.h" +#include "string-util-fundamental.h" -sd_bool bootspec_pick_name_version_sort_key( +bool bootspec_pick_name_version_sort_key( const sd_char *os_pretty_name, const sd_char *os_image_id, const sd_char *os_name, |