summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Dachary <loic@dachary.org>2014-03-06 15:00:10 +0100
committerLoic Dachary <loic@dachary.org>2014-03-28 17:12:40 +0100
commit09e9818973b08945de90efd4ed8b49c74d230ea9 (patch)
tree0822203d392093d50b51eda41c492786e33703ef
parent299a3e37effc9abc89c279acc5a1a695169fe557 (diff)
downloadgf-complete-09e9818973b08945de90efd4ed8b49c74d230ea9.tar.gz
main() returns int
Signed-off-by: Loic Dachary <loic@dachary.org> (cherry picked from commit 5c5b312a767afae3ae47774d0fbd98701c14794e)
-rw-r--r--examples/gf_example_5.c1
-rw-r--r--examples/gf_example_6.c1
-rw-r--r--examples/gf_example_7.c1
-rw-r--r--test/gf_unit.c1
-rw-r--r--tools/gf_inline_time.c1
-rw-r--r--tools/gf_poly.c2
6 files changed, 6 insertions, 1 deletions
diff --git a/examples/gf_example_5.c b/examples/gf_example_5.c
index 8e7dd4e..da6e9ca 100644
--- a/examples/gf_example_5.c
+++ b/examples/gf_example_5.c
@@ -74,4 +74,5 @@ int main(int argc, char **argv)
gf.extract_word.w32(&gf, a, 30*2, i+15),
gf.extract_word.w32(&gf, b, 30*2, i+15));
}
+ return 0;
}
diff --git a/examples/gf_example_6.c b/examples/gf_example_6.c
index 54cdf83..800a35f 100644
--- a/examples/gf_example_6.c
+++ b/examples/gf_example_6.c
@@ -80,4 +80,5 @@ int main(int argc, char **argv)
gf.extract_word.w32(&gf, a, 30*4, i+15),
gf.extract_word.w32(&gf, b, 30*4, i+15));
}
+ return 0;
}
diff --git a/examples/gf_example_7.c b/examples/gf_example_7.c
index cd5c44b..ee07d53 100644
--- a/examples/gf_example_7.c
+++ b/examples/gf_example_7.c
@@ -71,4 +71,5 @@ int main(int argc, char **argv)
gf.extract_word.w32(&gf, a, 3, i),
gf.extract_word.w32(&gf, b, 3, i));
}
+ return 0;
}
diff --git a/test/gf_unit.c b/test/gf_unit.c
index 3384d8e..deaaced 100644
--- a/test/gf_unit.c
+++ b/test/gf_unit.c
@@ -422,4 +422,5 @@ int main(int argc, char **argv)
gf_general_do_region_check(&gf, a, rc+s_start, rd+d_start, target+d_start, bytes, xor);
}
}
+ return 0;
}
diff --git a/tools/gf_inline_time.c b/tools/gf_inline_time.c
index 193c004..c81e8a9 100644
--- a/tools/gf_inline_time.c
+++ b/tools/gf_inline_time.c
@@ -164,4 +164,5 @@ int main(int argc, char **argv)
printf("Inline mult: %10.6lf s Mops: %10.3lf %10.3lf Mega-ops/s\n",
elapsed, dnum/1024.0/1024.0, dnum/1024.0/1024.0/elapsed);
}
+ return 0;
}
diff --git a/tools/gf_poly.c b/tools/gf_poly.c
index 8bfedb0..44a24ac 100644
--- a/tools/gf_poly.c
+++ b/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
free(x_to_q);
}
-main(int argc, char **argv)
+int main(int argc, char **argv)
{
int w, i, power, n, ap, success;
gf_t gf;