Skip to content

Commit

Permalink
Fixed fprintf format warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Benn Snyder <[email protected]>
  • Loading branch information
piedar committed Jun 19, 2013
1 parent 419b749 commit 89ccc40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/regtest.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ FILE *open_dump(const char *filename)

void dump_depth(FILE *fp, void *data, unsigned int width, unsigned int height)
{
fprintf(fp, "P5 %d %d 65535\n", width, height);
fprintf(fp, "P5 %u %u 65535\n", width, height);
fwrite(data, width * height * 2, 1, fp);
}

void dump_rgb(FILE *fp, void *data, unsigned int width, unsigned int height)
{
fprintf(fp, "P6 %d %d 255\n", width, height);
fprintf(fp, "P6 %u %u 255\n", width, height);
fwrite(data, width * height * 3, 1, fp);
}

Expand Down

0 comments on commit 89ccc40

Please sign in to comment.