summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sbat.h3
-rw-r--r--pe.c2
-rw-r--r--sbat.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/include/sbat.h b/include/sbat.h
index 5f0d7643..c49c645e 100644
--- a/include/sbat.h
+++ b/include/sbat.h
@@ -20,8 +20,7 @@ struct sbat {
struct sbat_entry **entries;
};
-EFI_STATUS parse_sbat(char *sbat_base, size_t sbat_size, char *buffer,
- struct sbat *sbat);
+EFI_STATUS parse_sbat(char *sbat_base, size_t sbat_size, struct sbat *sbat);
#endif /* !SBAT_H_ */
// vim:fenc=utf-8:tw=75:noet
diff --git a/pe.c b/pe.c
index acbf82e8..85a0b3b0 100644
--- a/pe.c
+++ b/pe.c
@@ -1057,7 +1057,7 @@ handle_image (void *data, unsigned int datasize,
CopyMem(sbat_data, SBATBase, SBATSize);
sbat_data[SBATSize] = '\0';
- res = parse_sbat(sbat_data, sbat_size, buffer, &sbat);
+ res = parse_sbat(sbat_data, sbat_size, &sbat);
if (res < 0) {
console_print(L"SBAT data not correct: %r\n", res);
return EFI_UNSUPPORTED;
diff --git a/sbat.c b/sbat.c
index 96c43cc8..2bddbce2 100644
--- a/sbat.c
+++ b/sbat.c
@@ -68,7 +68,7 @@ error:
}
EFI_STATUS
-parse_sbat(char *sbat_base, size_t sbat_size, char *buffer, struct sbat *sbat)
+parse_sbat(char *sbat_base, size_t sbat_size, struct sbat *sbat)
{
CHAR8 *current = (CHAR8 *)sbat_base;
CHAR8 *end = (CHAR8 *)sbat_base + sbat_size;