Skip to content

Commit

Permalink
fix some warnings w/ proper casts
Browse files Browse the repository at this point in the history
  • Loading branch information
pazos committed Oct 14, 2018
1 parent 3b0d09c commit 47f42bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fbink_device_id.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,11 @@ static void
ret = fseek(fp, HWCONFIG_OFFSET, SEEK_SET);
if (ret != 0)
{
fprintf(stderr, "[FBInk] Failed to seek to position 0x%x in %s\n", HWCONFIG_OFFSET, HWCONFIG_DEVICE);
fprintf(stderr, "[FBInk] Failed to seek to position 0x%p in %s\n", (void*) HWCONFIG_OFFSET, HWCONFIG_DEVICE);
exit(EXIT_FAILURE);
}

ret = fread(&config, sizeof(config), 1, fp);
ret = (int) fread(&config, sizeof(config), 1, fp);
if (ret != 1)
{
fprintf(stderr, "[FBInk] Failed to read the HWCONFIG entry in %s\n", HWCONFIG_DEVICE);
Expand Down

0 comments on commit 47f42bc

Please sign in to comment.