Commit 5c5b312a767afae3ae47774d0fbd98701c14794e

Authored by Loic Dachary
1 parent 191b86b5
Exists in master and in 2 other branches v2, v3

main() returns int

Signed-off-by: Loic Dachary <loic@dachary.org>
examples/gf_example_5.c
... ... @@ -74,4 +74,5 @@ int main(int argc, char **argv)
74 74 gf.extract_word.w32(&gf, a, 30*2, i+15),
75 75 gf.extract_word.w32(&gf, b, 30*2, i+15));
76 76 }
  77 + return 0;
77 78 }
... ...
examples/gf_example_6.c
... ... @@ -80,4 +80,5 @@ int main(int argc, char **argv)
80 80 gf.extract_word.w32(&gf, a, 30*4, i+15),
81 81 gf.extract_word.w32(&gf, b, 30*4, i+15));
82 82 }
  83 + return 0;
83 84 }
... ...
examples/gf_example_7.c
... ... @@ -71,4 +71,5 @@ int main(int argc, char **argv)
71 71 gf.extract_word.w32(&gf, a, 3, i),
72 72 gf.extract_word.w32(&gf, b, 3, i));
73 73 }
  74 + return 0;
74 75 }
... ...
test/gf_unit.c
... ... @@ -422,4 +422,5 @@ int main(int argc, char **argv)
422 422 gf_general_do_region_check(&gf, a, rc+s_start, rd+d_start, target+d_start, bytes, xor);
423 423 }
424 424 }
  425 + return 0;
425 426 }
... ...
tools/gf_inline_time.c
... ... @@ -164,4 +164,5 @@ int main(int argc, char **argv)
164 164 printf("Inline mult: %10.6lf s Mops: %10.3lf %10.3lf Mega-ops/s\n",
165 165 elapsed, dnum/1024.0/1024.0, dnum/1024.0/1024.0/elapsed);
166 166 }
  167 + return 0;
167 168 }
... ...
tools/gf_poly.c
... ... @@ -179,7 +179,7 @@ void x_to_q_to_i_minus_x(gf_t *gf, int w, int n, gf_general_t *poly, int logq, i
179 179 free(x_to_q);
180 180 }
181 181  
182   -main(int argc, char **argv)
  182 +int main(int argc, char **argv)
183 183 {
184 184 int w, i, power, n, ap, success;
185 185 gf_t gf;
... ...