aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/crc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2008-01-10 10:35:37 +0000
committerDiego Biurrun <diego@biurrun.de>2008-01-10 10:35:37 +0000
commitf3635240b77bd838304320df4a2b84a2de94130c (patch)
tree250751a9847d383e4a75f559eb9d08513feb73ce /libavutil/crc.c
parentc33820e52e8829668ef59b7ead6acee09558504f (diff)
downloadffmpeg-f3635240b77bd838304320df4a2b84a2de94130c.tar.gz
Fix a couple of 'return type defaults to int' and 'control reaches end of
non-void function' warnings in test code. Originally committed as revision 11491 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/crc.c')
-rw-r--r--libavutil/crc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/crc.c b/libavutil/crc.c
index b715a6558d..1de67a6ad1 100644
--- a/libavutil/crc.c
+++ b/libavutil/crc.c
@@ -130,7 +130,7 @@ uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t le
#ifdef TEST
#undef printf
-main(void){
+int main(void){
uint8_t buf[1999];
int i;
int p[4][3]={{AV_CRC_32_IEEE_LE, 0xEDB88320, 0x3D5CDD04},
@@ -146,5 +146,6 @@ main(void){
ctx = av_crc_get_table(p[i][0]);
printf("crc %08X =%X\n", p[i][1], av_crc(ctx, 0, buf, sizeof(buf)));
}
+ return 0;
}
#endif