From cf160899dd37156b3291189ec7d1b194c1f0842b Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Sun, 27 Jul 2008 21:10:32 +0000 Subject: [PATCH] Change return type of main function to int to avoid a warning. Originally committed as revision 14440 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/random.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavutil/random.c b/libavutil/random.c index d85b82044..0d31e8ad8 100644 --- a/libavutil/random.c +++ b/libavutil/random.c @@ -77,7 +77,7 @@ void av_random_generate_untempered_numbers(AVRandomState *state) #ifdef TEST #include "common.h" #include "log.h" -void main(void) +int main(void) { int x=0; int i, j; @@ -92,5 +92,6 @@ void main(void) STOP_TIMER("624 calls of av_random"); } av_log(NULL, AV_LOG_ERROR, "final value:%X\n", x); + return 0; } #endif -- 2.11.0