diff options
author | Benoit Fouet <benoit.fouet@free.fr> | 2007-07-18 15:38:04 +0000 |
---|---|---|
committer | Benoit Fouet <benoit.fouet@free.fr> | 2007-07-18 15:38:04 +0000 |
commit | 1f48345af4c4871ceffb29ba6dcf02526bc9344e (patch) | |
tree | 9bc7dd43810f4ee5d44a91d41ef53146778b6624 /tools | |
parent | 2c79288d4e0bcb8d3a8a908813fc9cc586dd7fdd (diff) | |
download | ffmpeg-1f48345af4c4871ceffb29ba6dcf02526bc9344e.tar.gz |
remove warnings
Originally committed as revision 9741 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tools')
-rw-r--r-- | tools/cws2fws.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/cws2fws.c b/tools/cws2fws.c index f81e2e26ea..aa7d690be3 100644 --- a/tools/cws2fws.c +++ b/tools/cws2fws.c @@ -16,7 +16,7 @@ #ifdef DEBUG #define dbgprintf printf #else -#define dbgprintf +#define dbgprintf(...) #endif int main(int argc, char *argv[]) @@ -97,7 +97,7 @@ int main(int argc, char *argv[]) exit(1); } - dbgprintf("a_in: %d t_in: %d a_out: %d t_out: %d -- %d out\n", + dbgprintf("a_in: %d t_in: %lu a_out: %d t_out: %lu -- %lu out\n", zstream.avail_in, zstream.total_in, zstream.avail_out, zstream.total_out, zstream.total_out-last_out); @@ -111,13 +111,13 @@ int main(int argc, char *argv[]) if (zstream.total_out != uncomp_len-8) { - printf("Size mismatch (%d != %d), updating header...\n", + printf("Size mismatch (%lu != %d), updating header...\n", zstream.total_out, uncomp_len-8); buf_in[0] = (zstream.total_out+8) & 0xff; - buf_in[1] = (zstream.total_out+8 >> 8) & 0xff; - buf_in[2] = (zstream.total_out+8 >> 16) & 0xff; - buf_in[3] = (zstream.total_out+8 >> 24) & 0xff; + buf_in[1] = ((zstream.total_out+8) >> 8) & 0xff; + buf_in[2] = ((zstream.total_out+8) >> 16) & 0xff; + buf_in[3] = ((zstream.total_out+8) >> 24) & 0xff; lseek(fd_out, 4, SEEK_SET); write(fd_out, &buf_in, 4); |