summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbat.c b/sbat.c
index 21b21bff..bb8cc81d 100644
--- a/sbat.c
+++ b/sbat.c
@@ -109,7 +109,7 @@ verify_single_entry(struct sbat_section_entry *entry, struct sbat_var_entry *sba
{
UINT16 sbat_gen, sbat_var_gen;
- if (strcmp(entry->component_name, sbat_var_entry->component_name) == 0) {
+ if (strcmp((const char *)entry->component_name, (const char *)sbat_var_entry->component_name) == 0) {
dprint(L"component %a has a matching SBAT variable entry, verifying\n",
entry->component_name);
@@ -117,8 +117,8 @@ verify_single_entry(struct sbat_section_entry *entry, struct sbat_var_entry *sba
* atoi returns zero for failed conversion, so essentially
* badly parsed component_generation will be treated as zero
*/
- sbat_gen = atoi(entry->component_generation);
- sbat_var_gen = atoi(sbat_var_entry->component_generation);
+ sbat_gen = atoi((const char *)entry->component_generation);
+ sbat_var_gen = atoi((const char *)sbat_var_entry->component_generation);
if (sbat_gen < sbat_var_gen) {
dprint(L"component %a, generation %d, was revoked by SBAT variable",