funkboot: fix unused parameter
This commit is contained in:
parent
1d39889818
commit
827b48d769
6
funk.c
6
funk.c
@ -255,7 +255,7 @@ static void funk_free(struct multiboot *mboot)
|
|||||||
|
|
||||||
|
|
||||||
/* *************************************************************************
|
/* *************************************************************************
|
||||||
* optarg_copy
|
* funk_get_memtype
|
||||||
* ************************************************************************* */
|
* ************************************************************************* */
|
||||||
static int funk_get_memtype(struct multiboot *mboot,
|
static int funk_get_memtype(struct multiboot *mboot,
|
||||||
const char *memname)
|
const char *memname)
|
||||||
@ -277,7 +277,7 @@ static int funk_get_memtype(struct multiboot *mboot,
|
|||||||
|
|
||||||
|
|
||||||
/* *************************************************************************
|
/* *************************************************************************
|
||||||
* optarg_copy
|
* funk_get_memsize
|
||||||
* ************************************************************************* */
|
* ************************************************************************* */
|
||||||
static int funk_get_memsize(struct multiboot *mboot,
|
static int funk_get_memsize(struct multiboot *mboot,
|
||||||
int memtype)
|
int memtype)
|
||||||
@ -761,7 +761,7 @@ static int funk_read_version(struct funk_privdata *funk,
|
|||||||
}
|
}
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < packet.data_length -3; i++)
|
for (i = 0; i < MIN(length, packet.data_length -3); i++)
|
||||||
{
|
{
|
||||||
version[i] = packet.msg.p.version.data[i] & 0x7F;
|
version[i] = packet.msg.p.version.data[i] & 0x7F;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user