Skip to content

Commit

Permalink
[xcpmd] Use unsigned long for smbios entry
Browse files Browse the repository at this point in the history
  OXT-1307

Signed-off-by: Chris <[email protected]>
  • Loading branch information
Chris committed Jul 19, 2018
1 parent ff06a14 commit 685be8d
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 685be8d

Please sign in to comment.