Browse code

main() --> main(void)

Originally committed as revision 11079 to svn://svn.ffmpeg.org/ffmpeg/trunk

Diego Biurrun authored on 2007/11/23 09:52:56
Showing 15 changed files
... ...
@@ -184,7 +184,7 @@ void ff_init_cabac_states(CABACContext *c){
184 184
 
185 185
 #include "avcodec.h"
186 186
 
187
-int main(){
187
+int main(void){
188 188
     CABACContext c;
189 189
     uint8_t b[9*SIZE];
190 190
     uint8_t r[9*SIZE];
... ...
@@ -451,7 +451,7 @@ static const char *const_names[]={
451 451
     "E",
452 452
     0
453 453
 };
454
-main(){
454
+main(void){
455 455
     int i;
456 456
     printf("%f == 12.7\n", ff_eval("1+(5-2)^(3-1)+1/2+sin(PI)-max(-2.2,-3.1)", const_values, const_names, NULL, NULL, NULL, NULL, NULL));
457 457
     printf("%f == 0.931322575\n", ff_eval("80G/80Gi", const_values, const_names, NULL, NULL, NULL, NULL, NULL));
... ...
@@ -7879,7 +7879,7 @@ static inline void fill_mb_avail(H264Context *h){
7879 7879
 #undef random
7880 7880
 #define COUNT 8000
7881 7881
 #define SIZE (COUNT*40)
7882
-int main(){
7882
+int main(void){
7883 7883
     int i;
7884 7884
     uint8_t temp[SIZE];
7885 7885
     PutBitContext pb;
... ...
@@ -111,7 +111,7 @@ int ff_rac_terminate(RangeCoder *c){
111 111
 
112 112
 #if 0 //selftest
113 113
 #define SIZE 10240
114
-int main(){
114
+int main(void){
115 115
     RangeCoder c;
116 116
     uint8_t b[9*SIZE];
117 117
     uint8_t r[9*SIZE];
... ...
@@ -4755,7 +4755,7 @@ AVCodec snow_encoder = {
4755 4755
 #undef printf
4756 4756
 #undef random
4757 4757
 
4758
-int main(){
4758
+int main(void){
4759 4759
     int width=256;
4760 4760
     int height=256;
4761 4761
     int buffer[2][width*height];
... ...
@@ -54,7 +54,7 @@ unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, unsigne
54 54
 #include "log.h"
55 55
 #define LEN 7001
56 56
 volatile int checksum;
57
-int main(){
57
+int main(void){
58 58
     int i;
59 59
     char data[LEN];
60 60
     av_log_level = AV_LOG_DEBUG;
... ...
@@ -194,7 +194,7 @@ int av_aes_init(AVAES *a, const uint8_t *key, int key_bits, int decrypt) {
194 194
 #ifdef TEST
195 195
 #include "log.h"
196 196
 
197
-int main(){
197
+int main(void){
198 198
     int i,j;
199 199
     AVAES ae, ad, b;
200 200
     uint8_t rkey[2][16]= {
... ...
@@ -107,7 +107,7 @@ uint32_t av_crc(const AVCRC *ctx, uint32_t crc, const uint8_t *buffer, size_t le
107 107
 
108 108
 #ifdef TEST
109 109
 #undef printf
110
-main(){
110
+main(void){
111 111
     uint8_t buf[1999];
112 112
     int i;
113 113
     int p[4][4]={{1, 32, AV_CRC_32_IEEE_LE, 0x3D5CDD04},
... ...
@@ -171,7 +171,7 @@ const uint8_t ff_log2_tab[256]={
171 171
         7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7
172 172
 };
173 173
 
174
-main(){
174
+main(void){
175 175
     int64_t a,b;
176 176
 
177 177
     for(a=7; a<256*256*256; a+=13215){
... ...
@@ -113,7 +113,7 @@ double av_evaluate_lls(LLSModel *m, double *param, int order){
113 113
 #include <stdlib.h>
114 114
 #include <stdio.h>
115 115
 
116
-int main(){
116
+int main(void){
117 117
     LLSModel m;
118 118
     int i, order;
119 119
 
... ...
@@ -113,7 +113,7 @@ int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq){
113 113
 #if 0
114 114
 #include "integer.h"
115 115
 #undef printf
116
-main(){
116
+main(void){
117 117
     int64_t a,b,c,d,e;
118 118
 
119 119
     for(a=7; a<(1LL<<62); a+=a/3+1){
... ...
@@ -164,7 +164,7 @@ void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len){
164 164
 #ifdef TEST
165 165
 #include <stdio.h>
166 166
 #undef printf
167
-main(){
167
+main(void){
168 168
     uint64_t md5val;
169 169
     int i;
170 170
     uint8_t in[1000];
... ...
@@ -149,7 +149,7 @@ void av_sha1_final(AVSHA1* ctx, uint8_t digest[20]){
149 149
 #include <stdio.h>
150 150
 #undef printf
151 151
 
152
-int main(){
152
+int main(void){
153 153
     int i, k;
154 154
     AVSHA1 ctx;
155 155
     unsigned char digest[20];
... ...
@@ -27,7 +27,7 @@
27 27
 
28 28
 #undef printf
29 29
 
30
-int main(){
30
+int main(void){
31 31
     SoftFloat one= av_int2sf(1, 0);
32 32
     SoftFloat sf1, sf2;
33 33
     double d1, d2;
... ...
@@ -132,7 +132,7 @@ int cmp(const void *a, const void *b){
132 132
     return a-b;
133 133
 }
134 134
 
135
-int main(){
135
+int main(void){
136 136
     int i,j,k;
137 137
     AVTreeNode *root= NULL;
138 138