]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Use int instead of INTN
authorJan Janssen <medhefgo@web.de>
Tue, 12 Jul 2022 07:46:44 +0000 (09:46 +0200)
committerJan Janssen <medhefgo@web.de>
Tue, 12 Jul 2022 09:24:49 +0000 (11:24 +0200)
src/boot/efi/boot.c
src/boot/efi/util.c

index c5a48a270d59ea5c69c471d595a60e889db69dbb..3587033dd32ad3ab7a5d5bc28871488f27c9d0dd 100644 (file)
@@ -429,7 +429,7 @@ static char16_t *update_timeout_efivar(uint32_t *t, bool inc) {
 }
 
 static bool unicode_supported(void) {
-        static INTN cache = -1;
+        static int cache = -1;
 
         if (cache < 0)
                 /* Basic unicode box drawing support is mandated by the spec, but it does
index c5142467b24addd64e0efa531e88db323f725b5c..44a75e1c324d8adeb8ff7acf44367fc2182c1352 100644 (file)
@@ -241,7 +241,7 @@ void efivar_set_time_usec(const EFI_GUID *vendor, const char16_t *name, uint64_t
         efivar_set(vendor, name, str, 0);
 }
 
-static INTN utf8_to_16(const char *stra, char16_t *c) {
+static int utf8_to_16(const char *stra, char16_t *c) {
         char16_t unichar;
         UINTN len;
 
@@ -309,7 +309,7 @@ char16_t *xstra_to_str(const char *stra) {
         strlen = 0;
         i = 0;
         while (i < len) {
-                INTN utf8len;
+                int utf8len;
 
                 utf8len = utf8_to_16(stra + i, str + strlen);
                 if (utf8len <= 0) {
@@ -340,7 +340,7 @@ char16_t *xstra_to_path(const char *stra) {
         strlen = 1;
         i = 0;
         while (i < len) {
-                INTN utf8len;
+                int utf8len;
 
                 utf8len = utf8_to_16(stra + i, str + strlen);
                 if (utf8len <= 0) {