aboutsummaryrefslogtreecommitdiffstats
path: root/com32/gpllib
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-23 10:27:09 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-23 10:27:09 -0700
commit5ead2538bd63a816d592dcc29748e4d5dc4adc02 (patch)
tree6f07180634e2c9bf4c9be3520fa9de51f8fc1c47 /com32/gpllib
parentdebd96ee67daff43628e177368eba0f49c2fedee (diff)
downloadsyslinux-5ead2538bd63a816d592dcc29748e4d5dc4adc02.tar.gz
syslinux-5ead2538bd63a816d592dcc29748e4d5dc4adc02.tar.xz
syslinux-5ead2538bd63a816d592dcc29748e4d5dc4adc02.zip
gpllib: bootloader id should be uint16_t
The id is of the form 0xABCD: use uint16_t instead of int. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/gpllib')
-rw-r--r--com32/gpllib/disk/bootloaders.c4
1 files changed, 2 insertions, 2 deletions
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)];