Skip to content

Commit

Permalink
Merge pull request #48 from crogers1/oxt-1307-s8
Browse files Browse the repository at this point in the history
STABLE-8: OXT-1307: [xcpmd] Use unsigned long for smbios entry
  • Loading branch information
eric-ch authored Jul 27, 2018
2 parents ff06a14 + 685be8d commit 916b9bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xcpmd/src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ int find_efi_entry_location(const char *efi_entry, uint32_t length, size_t *loca
FILE *systab = NULL;
char efiline[EFI_LINE_SIZE];
char *val;
off_t loc = 0;
unsigned long loc = 0;

*location = 0;

Expand All @@ -250,7 +250,7 @@ int find_efi_entry_location(const char *efi_entry, uint32_t length, size_t *loca
if ( strncmp(efiline, efi_entry, 6) == 0 )
{
val = memchr(efiline, '=', strlen(efiline)) + 1;
loc = strtol(val, NULL, 0);
loc = strtoul(val, NULL, 0);
break;
}
}
Expand Down

0 comments on commit 916b9bf

Please sign in to comment.