ldrdf: cast output of sizeof() before passing to printf(), to avoid warning.

The C99 way of doing this would be to use %zu, but that requires intrinsic
C library support.
This commit is contained in:
H. Peter Anvin 2007-08-20 20:02:17 +00:00
parent d94764bec0
commit 3b69717a12

View File

@ -720,8 +720,9 @@ void write_output(const char *filename)
fseek(ff, 0, SEEK_END);
if (ftell(ff) > sizeof(hr->g.data)) {
fprintf(error_file,
"warning: maximum generic record size is %d, rest of file ignored\n",
sizeof(hr->g.data));
"warning: maximum generic record size is %u, "
"rest of file ignored\n",
(unsigned int)sizeof(hr->g.data));
}
fclose(ff);