aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
Diffstat (limited to 'com32')
-rw-r--r--com32/gplinclude/disk/bootloaders.h7
-rw-r--r--com32/gpllib/disk/bootloaders.c4
-rw-r--r--com32/hdt/hdt-common.h2
3 files changed, 8 insertions, 5 deletions
diff --git a/com32/gplinclude/disk/bootloaders.h b/com32/gplinclude/disk/bootloaders.h
index 23f4b04f..f3c356d1 100644
--- a/com32/gplinclude/disk/bootloaders.h
+++ b/com32/gplinclude/disk/bootloaders.h
@@ -9,6 +9,9 @@
#ifndef __BOOTLOADERS_H_
#define __BOOTLOADERS_H_
-void get_bootloader_string(const int, void *, const int);
-int get_bootloader_id(const struct driveinfo *);
+
+#include <stdint.h>
+
+void get_bootloader_string(const uint16_t, void *, const int);
+uint16_t get_bootloader_id(const struct driveinfo *);
#endif /* _BOOTLOADERS_H_ */
diff --git a/com32/gpllib/disk/bootloaders.c b/com32/gpllib/disk/bootloaders.c
index 5c6082c2..6d8f38a5 100644
--- a/com32/gpllib/disk/bootloaders.c
+++ b/com32/gpllib/disk/bootloaders.c
@@ -19,7 +19,7 @@
* @buffer: pre-allocated buffer
* @buffer_size: @buffer size
**/
-void get_bootloader_string(const int label, char* buffer, const int buffer_size)
+void get_bootloader_string(const uint16_t label, char* buffer, const int buffer_size)
{
switch (label) {
case 0x0000:
@@ -52,7 +52,7 @@ void get_bootloader_string(const int label, char* buffer, const int buffer_size)
* get_bootloader_id - return the first two bytes of the MBR
* @d: driveinfo struct describing the drive
**/
-int get_bootloader_id(const struct driveinfo *d)
+uint16_t get_bootloader_id(const struct driveinfo *d)
{
char mbr[SECTOR * sizeof(char)];
diff --git a/com32/hdt/hdt-common.h b/com32/hdt/hdt-common.h
index 07fca074..4d3254fb 100644
--- a/com32/hdt/hdt-common.h
+++ b/com32/hdt/hdt-common.h
@@ -114,7 +114,7 @@ struct s_hardware {
s_vpd vpd; /* VPD information */
struct pci_domain *pci_domain; /* PCI Devices */
struct driveinfo disk_info[256]; /* Disk Information */
- int bootloader_ids[256]; /* Bootloader ids in the MBRs */
+ uint16_t bootloader_ids[256]; /* Bootloader ids in the MBRs */
int disks_count; /* Number of detected disks */
struct s_pxe pxe;
struct s_vesa vesa;