]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: Use unsigned for beep counting
authorJan Janssen <medhefgo@web.de>
Wed, 25 Jan 2023 14:23:49 +0000 (15:23 +0100)
committerJan Janssen <medhefgo@web.de>
Wed, 25 Jan 2023 14:23:49 +0000 (15:23 +0100)
src/boot/efi/util.c
src/boot/efi/util.h

index 43a1144629623d00f08b125f875a7c1df759a453..403b78c033cc333f64e952d3ea048121a8f99748 100644 (file)
@@ -570,7 +570,7 @@ static inline void outb(uint16_t port, uint8_t value) {
         asm volatile("outb %0, %1" : : "a"(value), "Nd"(port));
 }
 
-void beep(UINTN beep_count) {
+void beep(unsigned beep_count) {
         enum {
                 PITCH                = 500,
                 BEEP_DURATION_USEC   = 100 * 1000,
index 5fda06e27a05ad6fafd0ae12731c54a9ea5e743b..d42c23730d3d1958b63060dc3782df27f066afe4 100644 (file)
@@ -191,9 +191,9 @@ void hexdump(const char16_t *prefix, const void *data, size_t size);
         }
 
 #if defined(__i386__) || defined(__x86_64__)
-void beep(UINTN beep_count);
+void beep(unsigned beep_count);
 #else
-static inline void beep(UINTN beep_count) {}
+static inline void beep(unsigned beep_count) {}
 #endif
 
 EFI_STATUS open_volume(EFI_HANDLE device, EFI_FILE **ret_file);