Browse Source

Change return type of main function to int to avoid a warning.

Originally committed as revision 14440 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diego Biurrun 16 years ago
parent
commit
cf160899dd
1 changed files with 2 additions and 1 deletions
  1. 2 1
      libavutil/random.c

+ 2 - 1
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